Replace dialog ok-cancel buttons with QDialogButtonBox

This PR will make button order follow the platform default.
For example: windows use: OK, Cancel; linux use: Cancel, OK.
This commit is contained in:
Chocobo1 2017-09-15 13:57:55 +08:00
parent 4eafe7a2c8
commit 7059b947e8
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
8 changed files with 75 additions and 208 deletions

View file

@ -39,7 +39,7 @@ class QStandardItemModel;
class PreviewListDelegate;
class PreviewSelect: public QDialog, private Ui::preview
class PreviewSelect : public QDialog, private Ui::preview
{
Q_OBJECT
@ -60,9 +60,8 @@ public:
signals:
void readyToPreviewFile(QString) const;
protected slots:
void on_previewButton_clicked();
void on_cancelButton_clicked();
private slots:
void previewButtonClicked();
private:
QStandardItemModel *m_previewListModel;