summaryrefslogtreecommitdiffstats
path: root/kexi/formeditor/formmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/formeditor/formmanager.cpp')
-rw-r--r--kexi/formeditor/formmanager.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kexi/formeditor/formmanager.cpp b/kexi/formeditor/formmanager.cpp
index f75a4232..b212f00e 100644
--- a/kexi/formeditor/formmanager.cpp
+++ b/kexi/formeditor/formmanager.cpp
@@ -227,7 +227,7 @@ FormManager::createActions(WidgetLibrary *lib, KActionCollection* collection, KX
m_style->setEditable(false);
KGlobal::config()->setGroup("General");
- TQString currentStyle = TQString::fromLatin1(kapp->tqstyle().name()).lower();
+ TQString currentStyle = TQString::fromLatin1(kapp->style().name()).lower();
const TQStringList styles = TQStyleFactory::keys();
m_style->setItems(styles);
m_style->setCurrentItem(0);
@@ -660,7 +660,7 @@ FormManager::previewForm(Form *form, TQWidget *container, Form *toForm)
else
myform = toForm;
myform->createToplevel(container);
- container->setStyle( &(form->widget()->tqstyle()) );
+ container->setStyle( &(form->widget()->style()) );
if (!FormIO::loadFormFromDom(myform, container, domDoc)) {
delete myform;
@@ -845,7 +845,7 @@ FormManager::createContextMenu(TQWidget *w, Container *container, bool popupAtCu
const uint widgetsCount = container->form()->selectedWidgets()->count();
const bool multiple = widgetsCount > 1;
//const bool enableRemove = w != m_active->widget();
- // We only enabletqlayout creation if more than one widget with the same parent are selected
+ // We only enablelayout creation if more than one widget with the same parent are selected
const bool enableLayout = multiple || w == container->widget();
m_menuWidget = w;
@@ -1095,7 +1095,7 @@ void
FormManager::createLayout(int layoutType)
{
WidgetList *list = m_active->selectedWidgets();
- // if only one widget is selected (a container), we modify its tqlayout
+ // if only one widget is selected (a container), we modify its layout
if (list->isEmpty()) {//sanity check
kdWarning() << "FormManager::createLayout(): list is empty!" << endl;
return;
@@ -1103,9 +1103,9 @@ FormManager::createLayout(int layoutType)
if(list->count() == 1)
{
ObjectTreeItem *item = m_active->objectTree()->lookup(list->first()->name());
- if(!item || !item->container() || !m_propSet->contains("tqlayout"))
+ if(!item || !item->container() || !m_propSet->contains("layout"))
return;
- (*m_propSet)["tqlayout"] = Container::layoutTypeToString(layoutType);
+ (*m_propSet)["layout"] = Container::layoutTypeToString(layoutType);
return;
}
@@ -1115,7 +1115,7 @@ FormManager::createLayout(int layoutType)
kdDebug() << "comparing widget " << w->name() << " whose parent is " << w->parentWidget()->name() << " insteaed of " << parent->name() << endl;
if(w->parentWidget() != parent)
{
- KMessageBox::sorry(m_active->widget()->topLevelWidget(), i18n("<b>Cannot create the tqlayout.</b>\n"
+ KMessageBox::sorry(m_active->widget()->topLevelWidget(), i18n("<b>Cannot create the layout.</b>\n"
"All selected widgets must have the same parent."));
kdDebug() << "FormManager::createLayout() widgets don't have the same parent widget" << endl;
return;
@@ -1143,7 +1143,7 @@ FormManager::breakLayout()
else // normal container
{
if(activeForm()->selectedWidgets()->count() == 1)
- (*m_propSet)["tqlayout"] = "NoLayout";
+ (*m_propSet)["layout"] = "NoLayout";
else
container->setLayout(Container::NoLayout);
}
@@ -1500,7 +1500,7 @@ FormManager::emitWidgetSelected( KFormDesigner::Form* form, bool multiple )
}
enableAction("format_font", fontEnabled);
- // If the widgets selected is a container, we enable tqlayout actions
+ // If the widgets selected is a container, we enable layout actions
bool containerSelected = false;
if(!multiple)
{