X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2FUserInterface%2FViews%2FSettingsView.h;fp=src%2FUserInterface%2FViews%2FSettingsView.h;h=e565aa1431b801201cc323eab88479119430ce79;hb=9410983800d4a2e644eafcb728570278281d622c;hp=8b9bbebcbdf59be65b8f6a5728250549153cf192;hpb=658e4917f437e1f3bb214466ae91dc8fa0ea4705;p=qtmeetings diff --git a/src/UserInterface/Views/SettingsView.h b/src/UserInterface/Views/SettingsView.h index 8b9bbeb..e565aa1 100644 --- a/src/UserInterface/Views/SettingsView.h +++ b/src/UserInterface/Views/SettingsView.h @@ -1,7 +1,7 @@ #ifndef SETTINGSVIEW_H_ #define SETTINGSVIEW_H_ -#include "ObservedWidget.h" +#include "ViewBase.h" class QTabWidget; class QPushButton; @@ -9,9 +9,10 @@ class QLineEdit; class QTimeEdit; class QRadioButton; class QCheckBox; +class QSize; //! User interface class. Shows the settings view and handles configuration changes. -class SettingsView : public ObservedWidget +class SettingsView : public ViewBase { Q_OBJECT @@ -25,12 +26,16 @@ public: SettingsView( QWidget *aParent = 0 ); //! Destructor. virtual ~SettingsView(); + +signals: + void okClicked(); + +public slots: + void viewResized(const QSize &size); private slots: //! Slot to handle the Ok button pressing. - void okClicked(); - //! Slot to handle the cancel button pressing. - void cancelClicked(); + void handleOkClicked(); private: //! Initialize "Settings" tab. @@ -46,8 +51,6 @@ private: QTabWidget *iTabWidget; //! OK button to dismiss the settings view with saving the settings. QPushButton *iOkButton; - //! Cancel button to dismiss the settings view without saving settings. - QPushButton *iCancelButton; //! Settings tab. QWidget *iSettingsTab; //! Week View tab.