Diffstat (limited to 'noncore/settings/netsystemtime/ntpbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/netsystemtime/ntpbase.cpp | 90 |
1 files changed, 50 insertions, 40 deletions
diff --git a/noncore/settings/netsystemtime/ntpbase.cpp b/noncore/settings/netsystemtime/ntpbase.cpp index 7762e93..c10c6ae 100644 --- a/noncore/settings/netsystemtime/ntpbase.cpp +++ b/noncore/settings/netsystemtime/ntpbase.cpp @@ -3,3 +3,3 @@ ** -** Created: Mon Oct 21 21:06:08 2002 +** Created: Mon Oct 21 21:32:47 2002 ** by: The User Interface Compiler (uic) @@ -10,2 +10,3 @@ +#include <qcheckbox.h> #include <qcombobox.h> @@ -184,5 +185,5 @@ NtpBase::NtpBase( QWidget* parent, const char* name, WFlags fl ) FrameSettings->setFrameShadow( QFrame::Raised ); - FrameSettingsLayout = new QGridLayout( FrameSettings ); - FrameSettingsLayout->setSpacing( 11 ); - FrameSettingsLayout->setMargin( 3 ); + FrameSettingsLayout = new QVBoxLayout( FrameSettings ); + FrameSettingsLayout->setSpacing( 6 ); + FrameSettingsLayout->setMargin( 11 ); @@ -212,34 +213,15 @@ NtpBase::NtpBase( QWidget* parent, const char* name, WFlags fl ) Layout6->addWidget( ComboNtpSrv, 0, 1 ); + FrameSettingsLayout->addLayout( Layout6 ); + QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Minimum ); + FrameSettingsLayout->addItem( spacer_2 ); - FrameSettingsLayout->addLayout( Layout6, 0, 0 ); - QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); - FrameSettingsLayout->addItem( spacer_2, 3, 0 ); + CheckBoxAdvSettings = new QCheckBox( FrameSettings, "CheckBoxAdvSettings" ); + CheckBoxAdvSettings->setText( tr( "Advanced features" ) ); + FrameSettingsLayout->addWidget( CheckBoxAdvSettings ); + QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); + FrameSettingsLayout->addItem( spacer_3 ); - Layout7 = new QGridLayout; - Layout7->setSpacing( 6 ); - Layout7->setMargin( 0 ); - - TextLabel1_2 = new QLabel( FrameSettings, "TextLabel1_2" ); - TextLabel1_2->setText( tr( "Insure a delay of" ) ); - - Layout7->addWidget( TextLabel1_2, 0, 0 ); - - TextLabel2 = new QLabel( FrameSettings, "TextLabel2" ); - TextLabel2->setText( tr( "minutes until" ) ); - - Layout7->addWidget( TextLabel2, 0, 2 ); - - TextLabel3_3 = new QLabel( FrameSettings, "TextLabel3_3" ); - TextLabel3_3->setText( tr( "a new NTP lookup will be used to predict the time." ) ); - TextLabel3_3->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) ); - - Layout7->addMultiCellWidget( TextLabel3_3, 1, 1, 0, 2 ); - - SpinBoxMinLookupDelay = new QSpinBox( FrameSettings, "SpinBoxMinLookupDelay" ); - SpinBoxMinLookupDelay->setMaxValue( 9999999 ); - SpinBoxMinLookupDelay->setMinValue( 42 ); - - Layout7->addWidget( SpinBoxMinLookupDelay, 0, 1 ); - - FrameSettingsLayout->addLayout( Layout7, 2, 0 ); + Line1 = new QFrame( FrameSettings, "Line1" ); + Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken ); + FrameSettingsLayout->addWidget( Line1 ); @@ -267,8 +249,38 @@ NtpBase::NtpBase( QWidget* parent, const char* name, WFlags fl ) SpinBoxNtpDelay = new QSpinBox( FrameSettings, "SpinBoxNtpDelay" ); + SpinBoxNtpDelay->setWrapping( TRUE ); SpinBoxNtpDelay->setMaxValue( 9999999 ); - SpinBoxNtpDelay->setMinValue( 0 ); + SpinBoxNtpDelay->setMinValue( 1 ); + SpinBoxNtpDelay->setValue( 1440 ); Layout7_2->addWidget( SpinBoxNtpDelay, 0, 1 ); + FrameSettingsLayout->addLayout( Layout7_2 ); - FrameSettingsLayout->addLayout( Layout7_2, 1, 0 ); + Layout7 = new QGridLayout; + Layout7->setSpacing( 6 ); + Layout7->setMargin( 0 ); + + TextLabel1_2 = new QLabel( FrameSettings, "TextLabel1_2" ); + TextLabel1_2->setText( tr( "Insure a delay of" ) ); + + Layout7->addWidget( TextLabel1_2, 0, 0 ); + + TextLabel2 = new QLabel( FrameSettings, "TextLabel2" ); + TextLabel2->setText( tr( "minutes until" ) ); + + Layout7->addWidget( TextLabel2, 0, 2 ); + + TextLabel3_3 = new QLabel( FrameSettings, "TextLabel3_3" ); + TextLabel3_3->setText( tr( "a new NTP lookup will be used to predict the time." ) ); + TextLabel3_3->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) ); + + Layout7->addMultiCellWidget( TextLabel3_3, 1, 1, 0, 2 ); + + SpinBoxMinLookupDelay = new QSpinBox( FrameSettings, "SpinBoxMinLookupDelay" ); + SpinBoxMinLookupDelay->setWrapping( TRUE ); + SpinBoxMinLookupDelay->setMaxValue( 9999999 ); + SpinBoxMinLookupDelay->setMinValue( 42 ); + SpinBoxMinLookupDelay->setValue( 720 ); + + Layout7->addWidget( SpinBoxMinLookupDelay, 0, 1 ); + FrameSettingsLayout->addLayout( Layout7 ); @@ -290,10 +302,8 @@ NtpBase::NtpBase( QWidget* parent, const char* name, WFlags fl ) - TabWidgetMain->insertTab( tabMain, tr( "Main" ) ); + TabWidgetMain->insertTab( tabMain, tr( "Main" ) ); TabWidgetMain->insertTab( tabManualSetTime, tr( "Manual" ) ); - TabWidgetMain->insertTab( TabSettings, tr( "Settings" ) ); - - TabWidgetMain->insertTab( tabNtp, tr( "NTP" ) ); TabWidgetMain->insertTab( tabPredict, tr( "Predict" ) ); + TabWidgetMain->insertTab( tabNtp, tr( "NTP" ) ); |