Skip to content

Commit

Permalink
fix: add DAbstractDialog::move(int, int) and DAbstractDialog::setGeom…
Browse files Browse the repository at this point in the history
…etry(int, int, int, int)

Change-Id: I7a584ba7f7af114037d104012ce71143b80c43ce
  • Loading branch information
zccrs committed Mar 13, 2018
1 parent 13d22e3 commit 3f4bc68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/widgets/dabstractdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ class LIBDTKWIDGETSHARED_EXPORT DAbstractDialog : public QDialog, public DTK_COR
D_DECL_DEPRECATED DisplayPostion displayPostion() const;

void move(const QPoint &pos);
inline void move(int x, int y)
{ move(QPoint(x, y));}

void setGeometry(const QRect &rect);
inline void setGeometry(int x, int y, int width, int height)
{ setGeometry(QRect(x, y, width, height));}

public Q_SLOTS:
void moveToCenter();
Expand Down

0 comments on commit 3f4bc68

Please sign in to comment.