Diffstat (limited to 'libopie2/opiecore/oapplication.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiecore/oapplication.cpp | 14 |
1 files changed, 14 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 @@ -93,4 +93,5 @@ void OApplication::init() } + void OApplication::setMainWidget( QWidget* widget ) { @@ -98,4 +99,5 @@ void OApplication::setMainWidget( QWidget* widget ) } + void OApplication::showMainWidget( QWidget* widget, bool nomax ) { @@ -107,4 +109,16 @@ void OApplication::showMainWidget( QWidget* widget, bool nomax ) #endif widget->setCaption( _appname ); +} + +void OApplication::setTitle( QString title ) const +{ + if ( mainWidget() ) + { + if ( !title.isNull() ) + mainWidget()->setCaption( QString(_appname) + QString( " - " ) + title ); + else + mainWidget()->setCaption( _appname ); } +} + |