summaryrefslogtreecommitdiff
path: root/libopie2/opiecore
authormickeyl <mickeyl>2003-03-30 01:41:56 (UTC)
committer mickeyl <mickeyl>2003-03-30 01:41:56 (UTC)
commit99899abc80a8aa05044eeecd8a061b0a8efaa713 (patch) (side-by-side diff)
tree45db7a60f17d00ae72d0e8d6b986d5be10232c6c /libopie2/opiecore
parent340cb7e64fb898966996b00b93c03ca05a347aa5 (diff)
downloadopie-99899abc80a8aa05044eeecd8a061b0a8efaa713.zip
opie-99899abc80a8aa05044eeecd8a061b0a8efaa713.tar.gz
opie-99899abc80a8aa05044eeecd8a061b0a8efaa713.tar.bz2
- add classes for 802.11 tagged values
- adjust miniwellenreiter accordingly
Diffstat (limited to 'libopie2/opiecore') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/oapplication.cpp14
-rw-r--r--libopie2/opiecore/oapplication.h16
2 files changed, 30 insertions, 0 deletions
diff --git a/libopie2/opiecore/oapplication.cpp b/libopie2/opiecore/oapplication.cpp
index a0abcc2..12418d5 100644
--- a/libopie2/opiecore/oapplication.cpp
+++ b/libopie2/opiecore/oapplication.cpp
@@ -94,2 +94,3 @@ void OApplication::init()
+
void OApplication::setMainWidget( QWidget* widget )
@@ -99,2 +100,3 @@ void OApplication::setMainWidget( QWidget* widget )
+
void OApplication::showMainWidget( QWidget* widget, bool nomax )
@@ -108,3 +110,15 @@ void OApplication::showMainWidget( QWidget* widget, bool nomax )
widget->setCaption( _appname );
+}
+
+void OApplication::setTitle( QString title ) const
+{
+ if ( mainWidget() )
+ {
+ if ( !title.isNull() )
+ mainWidget()->setCaption( QString(_appname) + QString( " - " ) + title );
+ else
+ mainWidget()->setCaption( _appname );
+ }
}
+
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
@@ -71,2 +71,3 @@ class OApplication: public OApplicationBaseClass
* to every function that may require it.
+ *
* @return the current application object
@@ -94,2 +95,5 @@ class OApplication: public OApplicationBaseClass
* on Qt/Embedded.
+ *
+ * @param mainWidget the widget to become the main widget
+ * @see QWidget object
*/
@@ -100,2 +104,5 @@ class OApplication: public OApplicationBaseClass
* on platforms other than Qt/Embedded.
+ *
+ * @param mainWidget the widget to become the main widget
+ * @see QWidget object
*/
@@ -103,2 +110,11 @@ class OApplication: public OApplicationBaseClass
+ /**
+ * Set the application title. The application title will be concatenated
+ * to the application name given in the constructor.
+ *
+ * @param title the title. If not given, resets caption to appname
+ */
+ virtual void setTitle( QString title = QString::null ) const;
+ //virtual void setTitle() const;
+
protected: