mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-09-02 10:24:01 +02:00
Initial refactor of settings dialog with Qocoa
This commit is contained in:
@@ -31,14 +31,16 @@
|
||||
|
||||
class AnimatedSpinner;
|
||||
class QListWidgetItem;
|
||||
class Ui_StackedSettingsDialog;
|
||||
class Ui_Settings_Accounts;
|
||||
class Ui_Settings_Collection;
|
||||
class Ui_Settings_Advanced;
|
||||
class SipPlugin;
|
||||
class ResolversModel;
|
||||
class QNetworkReply;
|
||||
class QToolbarTabDialog;
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
class SettingsDialog;
|
||||
class ProxyDialog;
|
||||
}
|
||||
|
||||
@@ -68,14 +70,15 @@ private:
|
||||
Ui::ProxyDialog* ui;
|
||||
};
|
||||
|
||||
class SettingsDialog : public QDialog
|
||||
class SettingsDialog : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SettingsDialog( QWidget* parent = 0 );
|
||||
explicit SettingsDialog( QObject* parent = 0 );
|
||||
~SettingsDialog();
|
||||
|
||||
void show();
|
||||
protected:
|
||||
void changeEvent( QEvent* e );
|
||||
|
||||
@@ -97,7 +100,6 @@ private slots:
|
||||
|
||||
void updateScanOptionsView();
|
||||
|
||||
void changePage( QAction *action );
|
||||
void serventReady();
|
||||
|
||||
void aclEntryClearButtonClicked();
|
||||
@@ -107,10 +109,16 @@ private slots:
|
||||
private:
|
||||
void createIcons();
|
||||
|
||||
Ui_StackedSettingsDialog* ui;
|
||||
Ui_Settings_Accounts* m_accountsWidgetUi;
|
||||
QWidget* m_accountsWidget;
|
||||
|
||||
QToolBar *m_toolBar;
|
||||
QActionGroup *m_settingsGroup;
|
||||
Ui_Settings_Collection* m_collectionWidgetUi;
|
||||
QWidget* m_collectionWidget;
|
||||
|
||||
Ui_Settings_Advanced* m_advancedWidgetUi;
|
||||
QWidget* m_advancedWidget;
|
||||
|
||||
QToolbarTabDialog* m_dialog;
|
||||
|
||||
ProxyDialog m_proxySettings;
|
||||
bool m_rejected;
|
||||
|
Reference in New Issue
Block a user