From d27b30a66ae9038eadf81cc06dae1b002bef7625 Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Mon, 4 Dec 2006 19:51:53 +0000 Subject: fixing more warnings svn path=/trunk/playground/utils/dolphin/; revision=610636 --- src/dolphinmainwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/dolphinmainwindow.cpp') diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index c1a68fad5..08773fac1 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -77,11 +77,12 @@ DolphinMainWindow::DolphinMainWindow() : - KMainWindow(0, "Dolphin"), + KMainWindow(0), m_splitter(0), m_activeView(0), m_clipboardContainsCutData(false) { + setObjectName("Dolphin"); m_view[PrimaryIdx] = 0; m_view[SecondaryIdx] = 0; @@ -458,7 +459,7 @@ void DolphinMainWindow::createFile() KSortableList::ConstIterator it = m_createFileTemplates.begin(); KSortableList::ConstIterator end = m_createFileTemplates.end(); - const QString senderName(sender()->name()); + const QString senderName(sender()->objectName()); bool found = false; CreateFileEntry entry; while (!found && (it != end)) { @@ -483,7 +484,7 @@ void DolphinMainWindow::createFile() QString sourcePath(entry.templatePath.left(pos + 1)); sourcePath += KDesktopFile(entry.templatePath, true).readPathEntry("Url"); - QString name(i18n(entry.name.ascii())); + QString name(i18n(entry.name.toAscii())); // Most entry names end with "..." (e. g. "HTML File..."), which is ok for // menus but no good choice for a new file name -> remove the dots... name.replace("...", QString::null); -- cgit v1.3