summaryrefslogtreecommitdiff
authorpaule <paule>2007-01-13 07:05:32 (UTC)
committer paule <paule>2007-01-13 07:05:32 (UTC)
commitc0eb83f37ec3c49d0c6b322840605f2a95ea0b52 (patch) (unidiff)
treee776b5f8fd7f5d8f5ff5e9e3c6d9d638999ed622
parent75c65c1dc728929f0430b8faf956195657b73311 (diff)
downloadopie-c0eb83f37ec3c49d0c6b322840605f2a95ea0b52.zip
opie-c0eb83f37ec3c49d0c6b322840605f2a95ea0b52.tar.gz
opie-c0eb83f37ec3c49d0c6b322840605f2a95ea0b52.tar.bz2
Set sensible minimum width for Goto Line dialog
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/tinykate/libkate/view/kateviewdialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/apps/tinykate/libkate/view/kateviewdialog.cpp b/noncore/apps/tinykate/libkate/view/kateviewdialog.cpp
index b7cf9f5..d6fde62 100644
--- a/noncore/apps/tinykate/libkate/view/kateviewdialog.cpp
+++ b/noncore/apps/tinykate/libkate/view/kateviewdialog.cpp
@@ -221,24 +221,27 @@ GotoLineDialog::GotoLineDialog(QWidget *parent, int line, int max)
221 221
222 QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() ); 222 QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() );
223 e1 = new QSpinBox(page); 223 e1 = new QSpinBox(page);
224 e1->setMinValue(1); 224 e1->setMinValue(1);
225 e1->setMaxValue(max); 225 e1->setMaxValue(max);
226 e1->setValue((int)line); 226 e1->setValue((int)line);
227 227
228 QLabel *label = new QLabel( e1,i18n("&Goto Line:"), page ); 228 QLabel *label = new QLabel( e1,i18n("&Goto Line:"), page );
229 topLayout->addWidget(label); 229 topLayout->addWidget(label);
230 topLayout->addWidget(e1); 230 topLayout->addWidget(e1);
231 topLayout->addSpacing(spacingHint()); // A little bit extra space 231 topLayout->addSpacing(spacingHint()); // A little bit extra space
232 topLayout->addStretch(10); 232 topLayout->addStretch(10);
233
234 page->setMinimumWidth(100);
235
233 e1->setFocus(); 236 e1->setFocus();
234} 237}
235 238
236int GotoLineDialog::getLine() { 239int GotoLineDialog::getLine() {
237 return e1->value(); 240 return e1->value();
238} 241}
239 242
240const int IndentConfigTab::flags[] = {KateView::cfAutoIndent, KateView::cfSpaceIndent, 243const int IndentConfigTab::flags[] = {KateView::cfAutoIndent, KateView::cfSpaceIndent,
241 KateView::cfBackspaceIndents,KateView::cfTabIndents, KateView::cfKeepIndentProfile, KateView::cfKeepExtraSpaces}; 244 KateView::cfBackspaceIndents,KateView::cfTabIndents, KateView::cfKeepIndentProfile, KateView::cfKeepExtraSpaces};
242 245
243IndentConfigTab::IndentConfigTab(QWidget *parent, KateView *view) 246IndentConfigTab::IndentConfigTab(QWidget *parent, KateView *view)
244 : QWidget(parent, 0L) 247 : QWidget(parent, 0L)