|
|
@ -56,7 +56,7 @@
|
|
|
|
#include "widgetlibrary.h"
|
|
|
|
#include "widgetlibrary.h"
|
|
|
|
#include <formeditor/utils.h>
|
|
|
|
#include <formeditor/utils.h>
|
|
|
|
|
|
|
|
|
|
|
|
#if TDE_VERSION < KDE_MAKE_VERSION(3,1,9)
|
|
|
|
#if TDE_VERSION < TDE_MAKE_VERSION(3,1,9)
|
|
|
|
# define KInputDialog TQInputDialog
|
|
|
|
# define KInputDialog TQInputDialog
|
|
|
|
# include <tqinputdialog.h>
|
|
|
|
# include <tqinputdialog.h>
|
|
|
|
# include <tqlineedit.h>
|
|
|
|
# include <tqlineedit.h>
|
|
|
@ -367,7 +367,7 @@ ContainerFactory::ContainerFactory(TQObject *parent, const char *, const TQStrin
|
|
|
|
KFormDesigner::WidgetInfo *wTabWidget = new KFormDesigner::WidgetInfo(this);
|
|
|
|
KFormDesigner::WidgetInfo *wTabWidget = new KFormDesigner::WidgetInfo(this);
|
|
|
|
wTabWidget->setPixmap("tabwidget");
|
|
|
|
wTabWidget->setPixmap("tabwidget");
|
|
|
|
wTabWidget->setClassName("KFDTabWidget");
|
|
|
|
wTabWidget->setClassName("KFDTabWidget");
|
|
|
|
#if TDE_VERSION >= KDE_MAKE_VERSION(3,1,9)
|
|
|
|
#if TDE_VERSION >= TDE_MAKE_VERSION(3,1,9)
|
|
|
|
wTabWidget->addAlternateClassName("KTabWidget");
|
|
|
|
wTabWidget->addAlternateClassName("KTabWidget");
|
|
|
|
wTabWidget->addAlternateClassName(TQTABWIDGET_OBJECT_NAME_STRING);
|
|
|
|
wTabWidget->addAlternateClassName(TQTABWIDGET_OBJECT_NAME_STRING);
|
|
|
|
//tmp: wTabWidget->setSavingName(TQTABWIDGET_OBJECT_NAME_STRING);
|
|
|
|
//tmp: wTabWidget->setSavingName(TQTABWIDGET_OBJECT_NAME_STRING);
|
|
|
@ -518,7 +518,7 @@ ContainerFactory::createWidget(const TQCString &c, TQWidget *p, const char *n,
|
|
|
|
else if(c == "KFDTabWidget")
|
|
|
|
else if(c == "KFDTabWidget")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KFDTabWidget *tab = new KFDTabWidget(p, n);
|
|
|
|
KFDTabWidget *tab = new KFDTabWidget(p, n);
|
|
|
|
#if defined(USE_KTabWidget) && TDE_VERSION >= KDE_MAKE_VERSION(3,1,9)
|
|
|
|
#if defined(USE_KTabWidget) && TDE_VERSION >= TDE_MAKE_VERSION(3,1,9)
|
|
|
|
tab->setTabReorderingEnabled(true);
|
|
|
|
tab->setTabReorderingEnabled(true);
|
|
|
|
connect(tab, TQT_SIGNAL(movedTab(int,int)), this, TQT_SLOT(reorderTabs(int,int)));
|
|
|
|
connect(tab, TQT_SIGNAL(movedTab(int,int)), this, TQT_SLOT(reorderTabs(int,int)));
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
@ -857,7 +857,7 @@ void ContainerFactory::renameTabPage()
|
|
|
|
bool ok;
|
|
|
|
bool ok;
|
|
|
|
|
|
|
|
|
|
|
|
TQString name = KInputDialog::getText(i18n("New Page Title"), i18n("Enter a new title for the current page:"),
|
|
|
|
TQString name = KInputDialog::getText(i18n("New Page Title"), i18n("Enter a new title for the current page:"),
|
|
|
|
#if TDE_VERSION < KDE_MAKE_VERSION(3,1,9)
|
|
|
|
#if TDE_VERSION < TDE_MAKE_VERSION(3,1,9)
|
|
|
|
TQLineEdit::Normal,
|
|
|
|
TQLineEdit::Normal,
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
tab->tabLabel(w), &ok, w->topLevelWidget());
|
|
|
|
tab->tabLabel(w), &ok, w->topLevelWidget());
|
|
|
|