Diffstat (limited to 'libopie2/opiecore/oapplication.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiecore/oapplication.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libopie2/opiecore/oapplication.h b/libopie2/opiecore/oapplication.h index 736e786..4d25202 100644 --- a/libopie2/opiecore/oapplication.h +++ b/libopie2/opiecore/oapplication.h | |||
@@ -68,8 +68,9 @@ class OApplication: public OApplicationBaseClass | |||
68 | * allows access to the single global OApplication object, since | 68 | * allows access to the single global OApplication object, since |
69 | * more than one cannot be created in the same application. It | 69 | * more than one cannot be created in the same application. It |
70 | * saves you the trouble of having to pass the pointer explicitly | 70 | * saves you the trouble of having to pass the pointer explicitly |
71 | * to every function that may require it. | 71 | * to every function that may require it. |
72 | * | ||
72 | * @return the current application object | 73 | * @return the current application object |
73 | */ | 74 | */ |
74 | static const OApplication* oApplication() { return _instance; }; | 75 | static const OApplication* oApplication() { return _instance; }; |
75 | 76 | ||
@@ -91,17 +92,32 @@ class OApplication: public OApplicationBaseClass | |||
91 | 92 | ||
92 | /** | 93 | /** |
93 | * Sets the main widget - reimplemented to call showMainWidget() | 94 | * Sets the main widget - reimplemented to call showMainWidget() |
94 | * on Qt/Embedded. | 95 | * on Qt/Embedded. |
96 | * | ||
97 | * @param mainWidget the widget to become the main widget | ||
98 | * @see QWidget object | ||
95 | */ | 99 | */ |
96 | virtual void setMainWidget( QWidget *mainWidget ); | 100 | virtual void setMainWidget( QWidget *mainWidget ); |
97 | 101 | ||
98 | /** | 102 | /** |
99 | * Shows the main widget - reimplemented to call setMainWidget() | 103 | * Shows the main widget - reimplemented to call setMainWidget() |
100 | * on platforms other than Qt/Embedded. | 104 | * on platforms other than Qt/Embedded. |
105 | * | ||
106 | * @param mainWidget the widget to become the main widget | ||
107 | * @see QWidget object | ||
101 | */ | 108 | */ |
102 | virtual void showMainWidget( QWidget* widget, bool nomax = false ); | 109 | virtual void showMainWidget( QWidget* widget, bool nomax = false ); |
103 | 110 | ||
111 | /** | ||
112 | * Set the application title. The application title will be concatenated | ||
113 | * to the application name given in the constructor. | ||
114 | * | ||
115 | * @param title the title. If not given, resets caption to appname | ||
116 | */ | ||
117 | virtual void setTitle( QString title = QString::null ) const; | ||
118 | //virtual void setTitle() const; | ||
119 | |||
104 | protected: | 120 | protected: |
105 | void init(); | 121 | void init(); |
106 | 122 | ||
107 | private: | 123 | private: |