summaryrefslogtreecommitdiff
path: root/noncore/settings/netsystemtime/ntpbase.cpp
authortille <tille>2002-11-16 16:43:02 (UTC)
committer tille <tille>2002-11-16 16:43:02 (UTC)
commit0633fb26123857509c9eb0e0a013b654667ca9ce (patch) (unidiff)
tree9187213cc22830c65dcba1923be9a8355c673b5a /noncore/settings/netsystemtime/ntpbase.cpp
parent88435a3192f09453e035a7f1cf73bbc8c24245c9 (diff)
downloadopie-0633fb26123857509c9eb0e0a013b654667ca9ce.zip
opie-0633fb26123857509c9eb0e0a013b654667ca9ce.tar.gz
opie-0633fb26123857509c9eb0e0a013b654667ca9ce.tar.bz2
usability:
made it a dialog that saves when exiting clock now running
Diffstat (limited to 'noncore/settings/netsystemtime/ntpbase.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/ntpbase.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/noncore/settings/netsystemtime/ntpbase.cpp b/noncore/settings/netsystemtime/ntpbase.cpp
index 0a7a57e..878c158 100644
--- a/noncore/settings/netsystemtime/ntpbase.cpp
+++ b/noncore/settings/netsystemtime/ntpbase.cpp
@@ -1,42 +1,46 @@
1/**************************************************************************** 1/****************************************************************************
2** Form implementation generated from reading ui file 'ntpbase.ui' 2** Form implementation generated from reading ui file 'ntpbase.ui'
3** 3**
4** Created: Sun Nov 10 17:59:14 2002 4** Created: Sat Nov 16 15:49:54 2002
5** by: The User Interface Compiler (uic) 5** by: The User Interface Compiler (uic)
6** 6**
7** WARNING! All changes made in this file will be lost! 7** WARNING! All changes made in this file will be lost!
8****************************************************************************/ 8****************************************************************************/
9#include "ntpbase.h" 9#include "ntpbase.h"
10 10
11#include <qcheckbox.h> 11#include <qcheckbox.h>
12#include <qcombobox.h> 12#include <qcombobox.h>
13#include <qframe.h> 13#include <qframe.h>
14#include <qlabel.h> 14#include <qlabel.h>
15#include <qmultilineedit.h> 15#include <qmultilineedit.h>
16#include <qpushbutton.h> 16#include <qpushbutton.h>
17#include <qspinbox.h> 17#include <qspinbox.h>
18#include <qtable.h> 18#include <qtable.h>
19#include <qtabwidget.h> 19#include <qtabwidget.h>
20#include <qwidget.h>
20#include <qlayout.h> 21#include <qlayout.h>
21#include <qvariant.h> 22#include <qvariant.h>
22#include <qtooltip.h> 23#include <qtooltip.h>
23#include <qwhatsthis.h> 24#include <qwhatsthis.h>
24 25
25/* 26/*
26 * Constructs a NtpBase which is a child of 'parent', with the 27 * Constructs a NtpBase which is a child of 'parent', with the
27 * name 'name' and widget flags set to 'f' 28 * name 'name' and widget flags set to 'f'
29 *
30 * The dialog will by default be modeless, unless you set 'modal' to
31 * TRUE to construct a modal dialog.
28 */ 32 */
29NtpBase::NtpBase( QWidget* parent, const char* name, WFlags fl ) 33NtpBase::NtpBase( QWidget* parent, const char* name, bool modal, WFlags fl )
30 : QWidget( parent, name, fl ) 34 : QDialog( parent, name, modal, fl )
31{ 35{
32 if ( !name ) 36 if ( !name )
33 setName( "NtpBase" ); 37 setName( "NtpBase" );
34 resize( 317, 411 ); 38 resize( 317, 411 );
35 setCaption( tr( "Network Time" ) ); 39 setCaption( tr( "Network Time" ) );
36 NtpBaseLayout = new QGridLayout( this ); 40 NtpBaseLayout = new QGridLayout( this );
37 NtpBaseLayout->setSpacing( 2 ); 41 NtpBaseLayout->setSpacing( 2 );
38 NtpBaseLayout->setMargin( 2 ); 42 NtpBaseLayout->setMargin( 2 );
39 43
40 TabWidgetMain = new QTabWidget( this, "TabWidgetMain" ); 44 TabWidgetMain = new QTabWidget( this, "TabWidgetMain" );
41 45
42 tabMain = new QWidget( TabWidgetMain, "tabMain" ); 46 tabMain = new QWidget( TabWidgetMain, "tabMain" );
@@ -308,24 +312,24 @@ NtpBase::NtpBase( QWidget* parent, const char* name, WFlags fl )
308 */ 312 */
309NtpBase::~NtpBase() 313NtpBase::~NtpBase()
310{ 314{
311 // no need to delete child widgets, Qt does it all for us 315 // no need to delete child widgets, Qt does it all for us
312} 316}
313 317
314/* 318/*
315 * Main event handler. Reimplemented to handle application 319 * Main event handler. Reimplemented to handle application
316 * font changes 320 * font changes
317 */ 321 */
318bool NtpBase::event( QEvent* ev ) 322bool NtpBase::event( QEvent* ev )
319{ 323{
320 bool ret = QWidget::event( ev ); 324 bool ret = QDialog::event( ev );
321 if ( ev->type() == QEvent::ApplicationFontChange ) { 325 if ( ev->type() == QEvent::ApplicationFontChange ) {
322 QFont MultiLineEditntpOutPut_font( MultiLineEditntpOutPut->font() ); 326 QFont MultiLineEditntpOutPut_font( MultiLineEditntpOutPut->font() );
323 MultiLineEditntpOutPut_font.setPointSize( 7 ); 327 MultiLineEditntpOutPut_font.setPointSize( 7 );
324 MultiLineEditntpOutPut->setFont( MultiLineEditntpOutPut_font ); 328 MultiLineEditntpOutPut->setFont( MultiLineEditntpOutPut_font );
325 QFont TableLookups_font( TableLookups->font() ); 329 QFont TableLookups_font( TableLookups->font() );
326 TableLookups_font.setPointSize( 8 ); 330 TableLookups_font.setPointSize( 8 );
327 TableLookups->setFont( TableLookups_font ); 331 TableLookups->setFont( TableLookups_font );
328 } 332 }
329 return ret; 333 return ret;
330} 334}
331 335