┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/renamedialog.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-03-13 18:33:00 +0000
committerPeter Penz <[email protected]>2007-03-13 18:33:00 +0000
commit507984415a2953000ef1edb77c9dbc3364846b13 (patch)
tree90623c9904c049270c30d5edc5a510f129776b9c /src/renamedialog.h
parentd9ac44e08f8d2abe7104c20e308d05038e1896da (diff)
improve renaming for n selected items/1 selected item
svn path=/trunk/KDE/kdebase/apps/; revision=642235
Diffstat (limited to 'src/renamedialog.h')
-rw-r--r--src/renamedialog.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/renamedialog.h b/src/renamedialog.h
index c08856f8c..220b8b803 100644
--- a/src/renamedialog.h
+++ b/src/renamedialog.h
@@ -54,10 +54,13 @@ public:
virtual ~RenameDialog();
/**
- * Returns the new name of the items. If the returned string is not empty,
- * then it is assured that the string contains exactly one character #,
- * which should be replaced by ascending numbers. An empty string indicates
- * that the user has removed the # character.
+ * Returns the new name of the items. If more than one
+ * item should be renamed, then it is assured that the # character
+ * is part of the returned string. If the returned string is empty,
+ * then RenameDialog::errorString() should be used to show the reason
+ * of having an empty string (e. g. if the # character has
+ * been deleted by the user, although more then one item should be
+ * renamed).
*/
const QString& newName() const { return m_newName; }
@@ -70,6 +73,7 @@ protected slots:
virtual void slotButtonClicked(int button);
private:
+ bool m_renameOneItem;
KLineEdit* m_lineEdit;
QString m_newName;
QString m_errorString;