diff options
author | Arno <am@disconnect.de> | 2015-04-08 06:33:05 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2015-04-08 06:33:05 +0200 |
commit | 2f7b2582010bac5f24c6f57ea54b89aa46df2faa (patch) | |
tree | 8932eed39eb955944ca84c0de3226d6d262d854a /newpicsdialog.h | |
parent | b85e4d5f20317609d8a4277482e8bb3dac3e2dae (diff) | |
download | SheMov-2f7b2582010bac5f24c6f57ea54b89aa46df2faa.tar.gz SheMov-2f7b2582010bac5f24c6f57ea54b89aa46df2faa.tar.bz2 SheMov-2f7b2582010bac5f24c6f57ea54b89aa46df2faa.zip |
Save position of NewPicsDialog
Add button to save the position of the NewPicsDialog and move it there
when we show()
Diffstat (limited to 'newpicsdialog.h')
-rw-r--r-- | newpicsdialog.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/newpicsdialog.h b/newpicsdialog.h index baae31e..3da2d4b 100644 --- a/newpicsdialog.h +++ b/newpicsdialog.h @@ -14,6 +14,8 @@ #include "smtreemodel.h" class QTabWidget; +class QMoveEvent; +class QLabel; class SmTreeView; class NewPicFilesModel; class QSortFilterProxyModel; @@ -35,6 +37,12 @@ class NewPicsDialog : public QDialog { void clearFiles(); void accept(); + private slots: + void savePos(); + + protected: + virtual void moveEvent(QMoveEvent *e); + private: void setupDlg(); QTabWidget *mTab; @@ -43,12 +51,15 @@ class NewPicsDialog : public QDialog { SmTreeView *mFilesV; NewPicFilesModel *mFilesModel; QSortFilterProxyModel *mFilesProxy; + QPushButton *mSavePos; QPushButton *mAddFiles; QPushButton *mRemoveFiles; - MappingTreeWidget *mMappingTreeWidget; QPushButton *mOk; QPushButton *mCancel; + MappingTreeWidget *mMappingTreeWidget; + QLabel *mPosL; QSqlDatabase mDb; + QPoint mPos; }; class NewPicFilesModel : public SmTreeModel { |