summaryrefslogtreecommitdiff
authorpaule <paule>2007-01-13 07:05:32 (UTC)
committer paule <paule>2007-01-13 07:05:32 (UTC)
commitc0eb83f37ec3c49d0c6b322840605f2a95ea0b52 (patch) (side-by-side diff)
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
@@ -217,32 +217,35 @@ GotoLineDialog::GotoLineDialog(QWidget *parent, int line, int max)
: KDialogBase(parent, 0L, true, i18n("Goto Line"), Ok | Cancel, Ok) {
QWidget *page = new QWidget(this);
setMainWidget(page);
QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() );
e1 = new QSpinBox(page);
e1->setMinValue(1);
e1->setMaxValue(max);
e1->setValue((int)line);
QLabel *label = new QLabel( e1,i18n("&Goto Line:"), page );
topLayout->addWidget(label);
topLayout->addWidget(e1);
topLayout->addSpacing(spacingHint()); // A little bit extra space
topLayout->addStretch(10);
+
+ page->setMinimumWidth(100);
+
e1->setFocus();
}
int GotoLineDialog::getLine() {
return e1->value();
}
const int IndentConfigTab::flags[] = {KateView::cfAutoIndent, KateView::cfSpaceIndent,
KateView::cfBackspaceIndents,KateView::cfTabIndents, KateView::cfKeepIndentProfile, KateView::cfKeepExtraSpaces};
IndentConfigTab::IndentConfigTab(QWidget *parent, KateView *view)
: QWidget(parent, 0L)
{
QVBoxLayout *layout = new QVBoxLayout(this, 0, KDialog::spacingHint() );
int configFlags = view->config();