author | treke <treke> | 2004-11-07 00:29:17 (UTC) |
---|---|---|
committer | treke <treke> | 2004-11-07 00:29:17 (UTC) |
commit | ebed03682190e26f1ff7d8fc90e34324114b9c40 (patch) (unidiff) | |
tree | 6b4694bb15f49005a5494d4cdf0be9d5b6081f2d | |
parent | 6bf7a07505319732089ad34f84dd9b4f6921ed65 (diff) | |
download | opie-ebed03682190e26f1ff7d8fc90e34324114b9c40.zip opie-ebed03682190e26f1ff7d8fc90e34324114b9c40.tar.gz opie-ebed03682190e26f1ff7d8fc90e34324114b9c40.tar.bz2 |
The fixed column widths break the OTabWidget rendering in windowed mode.
-rw-r--r-- | noncore/settings/netsystemtime/predicttabwidget.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/noncore/settings/netsystemtime/predicttabwidget.cpp b/noncore/settings/netsystemtime/predicttabwidget.cpp index a9fe418..c706add 100644 --- a/noncore/settings/netsystemtime/predicttabwidget.cpp +++ b/noncore/settings/netsystemtime/predicttabwidget.cpp | |||
@@ -70,27 +70,25 @@ PredictTabWidget::PredictTabWidget( QWidget *parent ) | |||
70 | layout->addWidget( new QLabel( tr( "Predicted time" ), this ), 2, 0 ); | 70 | layout->addWidget( new QLabel( tr( "Predicted time" ), this ), 2, 0 ); |
71 | lblPredicted = new QLabel( tr( "n/a" ), this ); | 71 | lblPredicted = new QLabel( tr( "n/a" ), this ); |
72 | layout->addWidget( lblPredicted, 2, 1 ); | 72 | layout->addWidget( lblPredicted, 2, 1 ); |
73 | 73 | ||
74 | // Prediction table | 74 | // Prediction table |
75 | tblLookups = new QTable( 2, 3, this ); | 75 | tblLookups = new QTable( 2, 3, this ); |
76 | QFont font( tblLookups->font() ); | 76 | QFont font( tblLookups->font() ); |
77 | font.setPointSize( 7 ); | 77 | font.setPointSize( 7 ); |
78 | tblLookups->setFont( font ); | 78 | tblLookups->setFont( font ); |
79 | tblLookups->horizontalHeader()->setLabel( 0, tr( "Shift [s/h]" ) ); | 79 | tblLookups->horizontalHeader()->setLabel( 0, tr( "Shift [s/h]" ) ); |
80 | tblLookups->horizontalHeader()->setLabel( 1, tr( "Last [h]" ) ); | 80 | tblLookups->horizontalHeader()->setLabel( 1, tr( "Last [h]" ) ); |
81 | tblLookups->horizontalHeader()->setLabel( 2, tr( "Offset [s]" ) ); | 81 | tblLookups->horizontalHeader()->setLabel( 2, tr( "Offset [s]" ) ); |
82 | tblLookups->setColumnWidth( 0, 78 ); | 82 | |
83 | tblLookups->setColumnWidth( 1, 50 ); | ||
84 | tblLookups->setColumnWidth( 2, 50 ); | ||
85 | tblLookups->setMinimumHeight( 50 ); | 83 | tblLookups->setMinimumHeight( 50 ); |
86 | tblLookups->setSizePolicy( QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Maximum ) ); | 84 | tblLookups->setSizePolicy( QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Maximum ) ); |
87 | layout->addMultiCellWidget( tblLookups, 3, 3, 0, 1 ); | 85 | layout->addMultiCellWidget( tblLookups, 3, 3, 0, 1 ); |
88 | 86 | ||
89 | // Predict time button | 87 | // Predict time button |
90 | QPushButton *pb = new QPushButton( tr( "Predict time" ), this ); | 88 | QPushButton *pb = new QPushButton( tr( "Predict time" ), this ); |
91 | connect( pb, SIGNAL(clicked()), this, SLOT(slotPredictTime()) ); | 89 | connect( pb, SIGNAL(clicked()), this, SLOT(slotPredictTime()) ); |
92 | layout->addWidget( pb, 4, 0 ); | 90 | layout->addWidget( pb, 4, 0 ); |
93 | 91 | ||
94 | // Set predicted time button | 92 | // Set predicted time button |
95 | pb = new QPushButton( tr( "Set predicted time" ), this ); | 93 | pb = new QPushButton( tr( "Set predicted time" ), this ); |
96 | connect( pb, SIGNAL(clicked()), this, SLOT(slotSetPredictedTime()) ); | 94 | connect( pb, SIGNAL(clicked()), this, SLOT(slotSetPredictedTime()) ); |