diff options
| author | Jeff Mitchell <[email protected]> | 2007-08-16 13:22:18 +0000 |
|---|---|---|
| committer | Jeff Mitchell <[email protected]> | 2007-08-16 13:22:18 +0000 |
| commit | 7cd37f474739f666db310c65db9035591c3c7d78 (patch) | |
| tree | 329258296dfe94889eecffe9f1743613d143f947 /src/renamedialog.cpp | |
| parent | ce35ec9f3dc0fb5cf003cf0cb1a5de913ae28062 (diff) | |
Remove unnecessary parameter.
svn path=/trunk/KDE/kdebase/apps/; revision=700798
Diffstat (limited to 'src/renamedialog.cpp')
| -rw-r--r-- | src/renamedialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/renamedialog.cpp b/src/renamedialog.cpp index 6f08f175e..d4d9e16d1 100644 --- a/src/renamedialog.cpp +++ b/src/renamedialog.cpp @@ -26,14 +26,14 @@ #include <QtGui/QLabel> #include <QtGui/QBoxLayout> -RenameDialog::RenameDialog(const KUrl::List& urls, const QList<KFileItem>& items) : +RenameDialog::RenameDialog(const QList<KFileItem>& items) : KDialog(), m_renameOneItem(false) { const QSize minSize = minimumSize(); setMinimumSize(QSize(320, minSize.height())); - const int itemCount = urls.count(); + const int itemCount = items.count(); Q_ASSERT(itemCount >= 1); m_renameOneItem = (itemCount == 1); @@ -65,13 +65,13 @@ RenameDialog::RenameDialog(const KUrl::List& urls, const QList<KFileItem>& items } m_lineEdit = new KLineEdit(page); - QString extension = extensionString(urls[0].prettyUrl()); + QString extension = extensionString(items[0].url().prettyUrl()); if (extension.length() > 0) { // The first item seems to have a extension (e. g. '.jpg' or '.txt'). Now // check whether all other URLs have the same extension. If this is the // case, add this extension to the name suggestion. for (int i = 1; i < itemCount; ++i) { - if (!urls[i].prettyUrl().contains(extension)) { + if (!items[i].url().prettyUrl().contains(extension)) { // at least one item does not have the same extension extension.truncate(0); break; |
