From eeea9662b7963c6cbecdcc03ef650c4b6b860640 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 8 Jun 2008 13:10:14 +0000 Subject: * use a default size where the height of the line editor is not too small * remember the size set by the user CCMAIL: trueg@kde.org svn path=/trunk/KDE/kdebase/apps/; revision=818381 --- src/tagcloud/newtagdialog.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/tagcloud/newtagdialog.cpp') diff --git a/src/tagcloud/newtagdialog.cpp b/src/tagcloud/newtagdialog.cpp index 4dfafedf8..94af9aad7 100644 --- a/src/tagcloud/newtagdialog.cpp +++ b/src/tagcloud/newtagdialog.cpp @@ -36,14 +36,26 @@ NewTagDialog::NewTagDialog( QWidget* parent ) connect( m_editTagLabel, SIGNAL( textChanged(const QString&) ), this, SLOT( slotLabelChanged(const QString&) ) ); + + // TODO: use KGlobal::config() if NewTagDialog will be moved to kdelibs (KDE 4.2?) + KConfigGroup group(KSharedConfig::openConfig("dolphinrc"), "NewTagDialog"); + restoreDialogSize(group); } NewTagDialog::~NewTagDialog() { + // TODO: use KGlobal::config() if NewTagDialog will be moved to kdelibs (KDE 4.2?) + KConfigGroup group(KSharedConfig::openConfig("dolphinrc"), "NewTagDialog"); + saveDialogSize(group, KConfigBase::Persistent); } +QSize NewTagDialog::sizeHint() const +{ + return QSize(400, 256); +} + void NewTagDialog::slotLabelChanged( const QString& text ) { enableButtonOk( !text.isEmpty() ); -- cgit v1.3