┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/renamedialog.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-05-18 23:36:58 +0000
committerPeter Penz <[email protected]>2007-05-18 23:36:58 +0000
commit15b965af3a9c5387af74fad9ccf884ed15394d2c (patch)
tree3674e69e0a437f8a39da0b7229bb3f145884ddd2 /src/renamedialog.h
parent16e809f9fa531ffe4d7c9c825a2e06d92bdfa9e1 (diff)
David Faure wrote:
> Sounds like the kind of method that would benefit greatly from a unit test :) OK, committing my first unit test for KDE. Although very minimal it's at least a start ;-) (currently deactivated as I've some problem in CMakeList.txt) svn path=/trunk/KDE/kdebase/apps/; revision=666162
Diffstat (limited to 'src/renamedialog.h')
-rw-r--r--src/renamedialog.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/renamedialog.h b/src/renamedialog.h
index ec19e2697..b99fed291 100644
--- a/src/renamedialog.h
+++ b/src/renamedialog.h
@@ -92,13 +92,15 @@ private:
* "Image.1.12.gif" -> ".gif"
* "Image.tar.1.12.gz" -> ".tar.1.12.gz"
*/
- QString extensionString(const QString& name) const;
+ static QString extensionString(const QString& name);
private:
bool m_renameOneItem;
KLineEdit* m_lineEdit;
QString m_newName;
QString m_errorString;
+
+ friend class RenameDialogTest; // allow access for unit testing
};
#endif