mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 03:28:41 -07:00
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:
parent
4eafe7a2c8
commit
7059b947e8
8 changed files with 75 additions and 208 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue