mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
* 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
This commit is contained in:
parent
6b21b18331
commit
894919c15c
2 changed files with 14 additions and 0 deletions
|
@ -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() );
|
||||
|
|
|
@ -33,6 +33,8 @@ class NewTagDialog : public KDialog, public Ui_NewTagDialog
|
|||
public:
|
||||
~NewTagDialog();
|
||||
|
||||
virtual QSize sizeHint() const;
|
||||
|
||||
static Nepomuk::Tag createTag( QWidget* parent = 0 );
|
||||
|
||||
private Q_SLOTS:
|
||||
|
|
Loading…
Reference in a new issue