From 5254056d0fbc4d05dde43c7ad44c085decf8569d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 5 Mar 2015 05:03:32 +0100 Subject: Fix incorrectly renamed strings (cherry picked from commit f9f32cc93e35d51abba0fb9f26afc211c60a5ea4) --- kexi/formeditor/widgetlibrary.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'kexi/formeditor/widgetlibrary.cpp') diff --git a/kexi/formeditor/widgetlibrary.cpp b/kexi/formeditor/widgetlibrary.cpp index 23991774..f5da30e1 100644 --- a/kexi/formeditor/widgetlibrary.cpp +++ b/kexi/formeditor/widgetlibrary.cpp @@ -217,7 +217,7 @@ WidgetLibrary::lookupFactories() } const uint factoryVersion = ptr->property("X-KFormDesigner-WidgetFactoryVersion").toUInt(); if (KFormDesigner::version()!=factoryVersion) { - kdWarning() << TQString("WidgetLibrary::lookupFactories(): factory '%1'" + kdWarning() << TQString("WidgetLibrary::lookupFactories(): factory '%1'" " has version '%2' but required Widget Factory version is '%3'\n" " -- skipping this factory!").arg(ptr->library()).arg(factoryVersion) .arg(KFormDesigner::version()) << endl; @@ -319,7 +319,7 @@ WidgetLibrary::createXML() }*/ ActionList -WidgetLibrary::createWidgetActions(KXMLGUIClient* client, TDEActionCollection *parent, +WidgetLibrary::createWidgetActions(KXMLGUIClient* client, TDEActionCollection *parent, TQObject *receiver, const char *slot) { loadFactories(); @@ -338,8 +338,8 @@ WidgetLibrary::createWidgetActions(KXMLGUIClient* client, TDEActionCollection *p ActionList actions; for (TQAsciiDictIterator it(d->widgets); it.current(); ++it) { - LibActionWidget *a = new LibActionWidget(it.current(), - it.current()->factory()->m_guiClient + LibActionWidget *a = new LibActionWidget(it.current(), + it.current()->factory()->m_guiClient ? it.current()->factory()->m_guiClient->actionCollection() : parent); connect(a, TQT_SIGNAL(prepareInsert(const TQCString &)), receiver, slot); actions.append(a); @@ -353,7 +353,7 @@ WidgetLibrary::addCustomWidgetActions(TDEActionCollection *col) for (TQAsciiDictIterator it(d->factories); it.current(); ++it) { it.current()->createCustomActions( - it.current()->m_guiClient + it.current()->m_guiClient ? it.current()->m_guiClient->actionCollection() : col); } } @@ -730,13 +730,13 @@ WidgetFactory::CreateWidgetOptions WidgetLibrary::showOrientationSelectionPopup( if (textHorizontal.isEmpty() && wclass->inheritedClass()) iconName = wclass->inheritedClass()->factory()->internalProperty(classname, "orientationSelectionPopup:horizontalText"); if (textHorizontal.isEmpty()) //default - textHorizontal = i18n("InsertQt::Horizontal Widget", "InsertQt::Horizontal"); + textHorizontal = i18n("Insert Horizontal Widget", "Insert Horizontal"); TQString textVertical = wclass->factory()->internalProperty(classname, "orientationSelectionPopup:verticalText"); if (textVertical.isEmpty() && wclass->inheritedClass()) iconName = wclass->inheritedClass()->factory()->internalProperty(classname, "orientationSelectionPopup:verticalText"); if (textVertical.isEmpty()) //default - textVertical = i18n("InsertQt::Vertical Widget", "InsertQt::Vertical"); + textVertical = i18n("Insert Vertical Widget", "Insert Vertical"); TDEPopupMenu* popup = new TDEPopupMenu(parent, "orientationSelectionPopup"); popup->insertTitle(SmallIcon(wclass->pixmap()), i18n("Insert Widget: %1").arg(wclass->name())); -- cgit v1.2.1