┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/renamedialog.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-05-26 18:24:23 +0000
committerPeter Penz <[email protected]>2009-05-26 18:24:23 +0000
commitc848b945d44b3621d6418e6589ea5792003fa3c9 (patch)
treef08c03b4df8d135cfdbb34d205d6e184d57cb562 /src/renamedialog.h
parent13b535993e224f6150fc2bb90928a37b6a8078d2 (diff)
fixed krazy issues (see http://www.kdedevelopers.org/node/3919)
svn path=/trunk/KDE/kdebase/apps/; revision=973269
Diffstat (limited to 'src/renamedialog.h')
-rw-r--r--src/renamedialog.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/renamedialog.h b/src/renamedialog.h
index 1eaae2c61..eca5f4d06 100644
--- a/src/renamedialog.h
+++ b/src/renamedialog.h
@@ -24,11 +24,12 @@
#include <kdialog.h>
#include <kurl.h>
-
class KFileItem;
class KFileItemList;
class KLineEdit;
+#include <QString>
+
/**
* @brief Dialog for renaming a variable number of files.
*
@@ -65,18 +66,12 @@ public:
* been deleted by the user, although more than one item should be
* renamed).
*/
- const QString& newName() const
- {
- return m_newName;
- }
+ QString newName() const;
/**
* Returns the error string, if Dialog::newName() returned an empty string.
*/
- const QString& errorString() const
- {
- return m_errorString;
- }
+ QString errorString() const;
protected slots:
virtual void slotButtonClicked(int button);
@@ -90,4 +85,14 @@ private:
friend class RenameDialogTest; // allow access for unit testing
};
+inline QString RenameDialog::newName() const
+{
+ return m_newName;
+}
+
+inline QString RenameDialog::errorString() const
+{
+ return m_errorString;
+}
+
#endif