-rw-r--r-- | noncore/settings/netsystemtime/ntptabwidget.cpp | 2 | ||||
-rw-r--r-- | noncore/settings/netsystemtime/predicttabwidget.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/noncore/settings/netsystemtime/ntptabwidget.cpp b/noncore/settings/netsystemtime/ntptabwidget.cpp index 16d21cc..d0107a4 100644 --- a/noncore/settings/netsystemtime/ntptabwidget.cpp +++ b/noncore/settings/netsystemtime/ntptabwidget.cpp | |||
@@ -64,25 +64,25 @@ NTPTabWidget::NTPTabWidget( QWidget *parent ) | |||
64 | layout->addWidget( new QLabel( tr( "Time shift" ), container ), 1, 0 ); | 64 | layout->addWidget( new QLabel( tr( "Time shift" ), container ), 1, 0 ); |
65 | lblTimeShift = new QLabel( tr( "n/a" ), container ); | 65 | lblTimeShift = new QLabel( tr( "n/a" ), container ); |
66 | layout->addWidget( lblTimeShift, 1, 1 ); | 66 | layout->addWidget( lblTimeShift, 1, 1 ); |
67 | 67 | ||
68 | // New time | 68 | // New time |
69 | layout->addWidget( new QLabel( tr( "New time" ), container ), 2, 0 ); | 69 | layout->addWidget( new QLabel( tr( "New time" ), container ), 2, 0 ); |
70 | lblNewTime = new QLabel( tr( "n/a" ), container ); | 70 | lblNewTime = new QLabel( tr( "n/a" ), container ); |
71 | layout->addWidget( lblNewTime, 2, 1 ); | 71 | layout->addWidget( lblNewTime, 2, 1 ); |
72 | 72 | ||
73 | // NTP output display | 73 | // NTP output display |
74 | mleNtpOutput = new QMultiLineEdit( container ); | 74 | mleNtpOutput = new QMultiLineEdit( container ); |
75 | QFont font( mleNtpOutput->font() ); | 75 | QFont font( mleNtpOutput->font() ); |
76 | font.setPointSize( 7 ); | 76 | font.setPointSize( font.pointSize() - 2 ); |
77 | mleNtpOutput->setFont( font ); | 77 | mleNtpOutput->setFont( font ); |
78 | mleNtpOutput->setWordWrap( QMultiLineEdit::WidgetWidth ); | 78 | mleNtpOutput->setWordWrap( QMultiLineEdit::WidgetWidth ); |
79 | layout->addMultiCellWidget( mleNtpOutput, 3, 3, 0, 1 ); | 79 | layout->addMultiCellWidget( mleNtpOutput, 3, 3, 0, 1 ); |
80 | 80 | ||
81 | // Set NTP time button | 81 | // Set NTP time button |
82 | m_ntpBtn = new QPushButton( Opie::Core::OResource::loadPixmap( "netsystemtime/ntptab", Opie::Core::OResource::SmallIcon ), | 82 | m_ntpBtn = new QPushButton( Opie::Core::OResource::loadPixmap( "netsystemtime/ntptab", Opie::Core::OResource::SmallIcon ), |
83 | tr( "Get time from the network" ), container ); | 83 | tr( "Get time from the network" ), container ); |
84 | m_ntpBtn->setMinimumHeight( AppLnk::smallIconSize()+4 ); | 84 | m_ntpBtn->setMinimumHeight( AppLnk::smallIconSize()+4 ); |
85 | connect( m_ntpBtn, SIGNAL(clicked()), this, SIGNAL(getNTPTime()) ); | 85 | connect( m_ntpBtn, SIGNAL(clicked()), this, SIGNAL(getNTPTime()) ); |
86 | layout->addMultiCellWidget( m_ntpBtn, 4, 4, 0, 1 ); | 86 | layout->addMultiCellWidget( m_ntpBtn, 4, 4, 0, 1 ); |
87 | } | 87 | } |
88 | 88 | ||
diff --git a/noncore/settings/netsystemtime/predicttabwidget.cpp b/noncore/settings/netsystemtime/predicttabwidget.cpp index 98e0afd..0b95277 100644 --- a/noncore/settings/netsystemtime/predicttabwidget.cpp +++ b/noncore/settings/netsystemtime/predicttabwidget.cpp | |||
@@ -67,25 +67,25 @@ PredictTabWidget::PredictTabWidget( QWidget *parent ) | |||
67 | layout->addWidget( new QLabel( tr( "Estimated shift" ), this ), 1, 0 ); | 67 | layout->addWidget( new QLabel( tr( "Estimated shift" ), this ), 1, 0 ); |
68 | lblDiff = new QLabel( tr( "n/a" ), this ); | 68 | lblDiff = new QLabel( tr( "n/a" ), this ); |
69 | layout->addWidget( lblDiff, 1, 1 ); | 69 | layout->addWidget( lblDiff, 1, 1 ); |
70 | 70 | ||
71 | // Predicted time | 71 | // Predicted time |
72 | layout->addWidget( new QLabel( tr( "Predicted time" ), this ), 2, 0 ); | 72 | layout->addWidget( new QLabel( tr( "Predicted time" ), this ), 2, 0 ); |
73 | lblPredicted = new QLabel( tr( "n/a" ), this ); | 73 | lblPredicted = new QLabel( tr( "n/a" ), this ); |
74 | layout->addWidget( lblPredicted, 2, 1 ); | 74 | layout->addWidget( lblPredicted, 2, 1 ); |
75 | 75 | ||
76 | // Prediction table | 76 | // Prediction table |
77 | tblLookups = new QTable( 2, 3, this ); | 77 | tblLookups = new QTable( 2, 3, this ); |
78 | QFont font( tblLookups->font() ); | 78 | QFont font( tblLookups->font() ); |
79 | font.setPointSize( 7 ); | 79 | font.setPointSize( font.pointSize() - 2 ); |
80 | tblLookups->setFont( font ); | 80 | tblLookups->setFont( font ); |
81 | tblLookups->horizontalHeader()->setLabel( 0, tr( "Shift [s/h]" ) ); | 81 | tblLookups->horizontalHeader()->setLabel( 0, tr( "Shift [s/h]" ) ); |
82 | tblLookups->horizontalHeader()->setLabel( 1, tr( "Last [h]" ) ); | 82 | tblLookups->horizontalHeader()->setLabel( 1, tr( "Last [h]" ) ); |
83 | tblLookups->horizontalHeader()->setLabel( 2, tr( "Offset [s]" ) ); | 83 | tblLookups->horizontalHeader()->setLabel( 2, tr( "Offset [s]" ) ); |
84 | 84 | ||
85 | tblLookups->setMinimumHeight( 50 ); | 85 | tblLookups->setMinimumHeight( 50 ); |
86 | tblLookups->setSizePolicy( QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Maximum ) ); | 86 | tblLookups->setSizePolicy( QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Maximum ) ); |
87 | layout->addMultiCellWidget( tblLookups, 3, 3, 0, 1 ); | 87 | layout->addMultiCellWidget( tblLookups, 3, 3, 0, 1 ); |
88 | 88 | ||
89 | // Predict time button | 89 | // Predict time button |
90 | QPushButton *pb = new QPushButton( tr( "Predict time" ), this ); | 90 | QPushButton *pb = new QPushButton( tr( "Predict time" ), this ); |
91 | connect( pb, SIGNAL(clicked()), this, SLOT(slotPredictTime()) ); | 91 | connect( pb, SIGNAL(clicked()), this, SLOT(slotPredictTime()) ); |