summaryrefslogtreecommitdiffstats
path: root/kexi/main/startup/KexiStartupDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/main/startup/KexiStartupDialog.cpp')
-rw-r--r--kexi/main/startup/KexiStartupDialog.cpp190
1 files changed, 95 insertions, 95 deletions
diff --git a/kexi/main/startup/KexiStartupDialog.cpp b/kexi/main/startup/KexiStartupDialog.cpp
index 3b524492..40ced9b1 100644
--- a/kexi/main/startup/KexiStartupDialog.cpp
+++ b/kexi/main/startup/KexiStartupDialog.cpp
@@ -25,16 +25,16 @@
#include "KexiConnSelector.h"
#include "KexiConnSelectorBase.h"
-#include <qlayout.h>
-#include <qtabwidget.h>
-#include <qcombobox.h>
-#include <qcheckbox.h>
-#include <qpoint.h>
-#include <qobjectlist.h>
-#include <qvgroupbox.h>
-#include <qapplication.h>
-#include <qtooltip.h>
-#include <qwidgetstack.h>
+#include <tqlayout.h>
+#include <tqtabwidget.h>
+#include <tqcombobox.h>
+#include <tqcheckbox.h>
+#include <tqpoint.h>
+#include <tqobjectlist.h>
+#include <tqvgroupbox.h>
+#include <tqapplication.h>
+#include <tqtooltip.h>
+#include <tqwidgetstack.h>
#include <klocale.h>
#include <kdeversion.h>
@@ -67,7 +67,7 @@ public:
, pageOpenRecentID(-1)
{
result = 0;
- QString none, iconname;
+ TQString none, iconname;
iconname = KMimeType::mimeType( KexiDB::Driver::defaultFileBasedDriverMimeType() )->icon(none,0);
kexi_sqlite_icon = KGlobal::iconLoader()->loadIcon( iconname, KIcon::Desktop );
iconname = KMimeType::mimeType("application/x-kexiproject-shortcut")->icon(none,0);
@@ -83,35 +83,35 @@ public:
int dialogType, dialogOptions;
- QFrame *pageTemplates, *pageOpenExisting, *pageOpenRecent;
+ TQFrame *pageTemplates, *pageOpenExisting, *pageOpenRecent;
int pageTemplatesID;
int pageOpenExistingID, pageOpenRecentID;
int templatesSectionID_blank, templatesSectionID_import;
#ifdef DB_TEMPLATES
int templatesSectionID_templates; //, templatesSectionID_custom2;
#endif
- QCheckBox *chkDoNotShow;
+ TQCheckBox *chkDoNotShow;
//widgets for template tab:
KJanusWidget* templatesWidget;
- QObject *templatesWidget_IconListBox;//helper
+ TQObject *templatesWidget_IconListBox;//helper
- QWidgetStack *viewBlankTempl;
+ TQWidgetStack *viewBlankTempl;
KexiStartupDialogTemplatesPage *viewTemplates;
//TemplatesPage *viewBusinessTempl;
int result;
- QPixmap kexi_sqlite_icon, kexi_shortcut_icon;
+ TQPixmap kexi_sqlite_icon, kexi_shortcut_icon;
// //! Key string of selected database template. \sa selectedTemplateKey()
-// QString selectedTemplateKey;
+// TQString selectedTemplateKey;
//! used for "open existing"
KexiDBConnectionSet *connSet;
KexiStartupFileDialog *openExistingFileDlg; //! embedded file dialog
KexiConnSelectorWidget *openExistingConnWidget;
- QString existingFileToOpen; //! helper for returning a file name to open
+ TQString existingFileToOpen; //! helper for returning a file name to open
KexiDB::ConnectionData* selectedExistingConnection; //! helper for returning selected connection
//! used for "open recent"
@@ -129,7 +129,7 @@ bool dlgSinglePage(int type)
|| (type==KexiStartupDialog::OpenRecent);
}
-QString captionForDialogType(int type)
+TQString captionForDialogType(int type)
{
if (type==KexiStartupDialog::Templates)
return i18n("Create Project");
@@ -142,21 +142,21 @@ QString captionForDialogType(int type)
}
/*================================================================*/
-/*KexiStartupDialog::KexiStartupDialog(QWidget *parent, const char *name, KInstance* global,
- const QCString &format, const QString &nativePattern,
- const QString &nativeName, const DialogType &dialogType,
- const QCString& templateType) :
- KDialogBase(parent, name, true, i18n("Open Document"), KDialogBase::Ok | KDialogBase::Cancel,
+/*KexiStartupDialog::KexiStartupDialog(TQWidget *tqparent, const char *name, KInstance* global,
+ const TQCString &format, const TQString &nativePattern,
+ const TQString &nativeName, const DialogType &dialogType,
+ const TQCString& templateType) :
+ KDialogBase(tqparent, name, true, i18n("Open Document"), KDialogBase::Ok | KDialogBase::Cancel,
KDialogBase::Ok) {
*/
KexiStartupDialog::KexiStartupDialog(
int dialogType, int dialogOptions,
KexiDBConnectionSet& connSet, KexiProjectSet& recentProjects,
- QWidget *parent, const char *name )
+ TQWidget *tqparent, const char *name )
: KDialogBase(
dlgSinglePage(dialogType) ? Plain : Tabbed
,captionForDialogType(dialogType)
- ,Help | Ok | Cancel, Ok, parent, name )
+ ,Help | Ok | Cancel, Ok, tqparent, name )
, d(new KexiStartupDialogPrivate())
{
d->recentProjects = &recentProjects;
@@ -194,7 +194,7 @@ KexiStartupDialog::KexiStartupDialog(
#endif
if (!d->singlePage) {
- connect(this, SIGNAL(aboutToShowPage(QWidget*)), this, SLOT(slotPageShown(QWidget*)));
+ connect(this, TQT_SIGNAL(aboutToShowPage(TQWidget*)), this, TQT_SLOT(slotPageShown(TQWidget*)));
d->templatesWidget->setFocus();
}
showPage(0);
@@ -215,8 +215,8 @@ bool KexiStartupDialog::shouldBeShown()
void KexiStartupDialog::show()
{
//just some cleanup
-// d->selectedTemplateKey=QString::null;
- d->existingFileToOpen=QString::null;
+// d->selectedTemplateKey=TQString();
+ d->existingFileToOpen=TQString();
d->result=-1;
KDialog::centerOnScreen(this);
@@ -236,7 +236,7 @@ void KexiStartupDialog::done(int r)
// kdDebug() << "KexiStartupDialog::done(" << r << ")" << endl;
// updateSelectedTemplateKeyInfo();
- if (r==QDialog::Rejected) {
+ if (r==TQDialog::Rejected) {
d->result = CancelResult;
} else {
const int idx = activePageIndex();
@@ -260,7 +260,7 @@ void KexiStartupDialog::done(int r)
// d->existingFileToOpen = d->openExistingFileDlg->currentURL().path();
d->selectedExistingConnection = 0;
} else {
- d->existingFileToOpen = QString::null;
+ d->existingFileToOpen = TQString();
d->selectedExistingConnection
= d->openExistingConnWidget->selectedConnectionData();
}
@@ -294,7 +294,7 @@ void KexiStartupDialog::reject()
void KexiStartupDialog::setupPageTemplates()
{
d->pageTemplates = addPage( i18n("&Create Project") );
- QVBoxLayout *lyr = new QVBoxLayout( d->pageTemplates, 0, KDialogBase::spacingHint() );
+ TQVBoxLayout *lyr = new TQVBoxLayout( d->pageTemplates, 0, KDialogBase::spacingHint() );
d->templatesWidget = new KJanusWidget(
d->pageTemplates, "templatesWidget", KJanusWidget::IconList);
@@ -304,27 +304,27 @@ void KexiStartupDialog::setupPageTemplates()
d->templatesWidget_IconListBox->installEventFilter(this);
}
lyr->addWidget(d->templatesWidget);
- connect(d->templatesWidget, SIGNAL(aboutToShowPage(QWidget*)), this, SLOT(slotPageShown(QWidget*)));
+ connect(d->templatesWidget, TQT_SIGNAL(aboutToShowPage(TQWidget*)), this, TQT_SLOT(slotPageShown(TQWidget*)));
if (d->dialogOptions & CheckBoxDoNotShowAgain) {
- d->chkDoNotShow = new QCheckBox(i18n("Don't show me this dialog again"), d->pageTemplates, "chkDoNotShow");
+ d->chkDoNotShow = new TQCheckBox(i18n("Don't show me this dialog again"), d->pageTemplates, "chkDoNotShow");
lyr->addWidget(d->chkDoNotShow);
}
//template groups:
- QFrame *templPageFrame;
- QVBoxLayout *tmplyr;
+ TQFrame *templPageFrame;
+ TQVBoxLayout *tmplyr;
int itemID = 0; //used just to set up templatesSectionID_*
//- page "blank db"
d->templatesSectionID_blank = itemID++;
- QString clickMsg( "\n\n" + i18n("Click \"OK\" button to proceed.") );
+ TQString clickMsg( "\n\n" + i18n("Click \"OK\" button to proceed.") );
templPageFrame = d->templatesWidget->addPage(
i18n("Blank Database"), i18n("New Blank Database Project"), DesktopIcon("empty") );
- tmplyr = new QVBoxLayout(templPageFrame, 0, KDialogBase::spacingHint());
- QLabel *lbl_blank = new QLabel(
+ tmplyr = new TQVBoxLayout(templPageFrame, 0, KDialogBase::spacingHint());
+ TQLabel *lbl_blank = new TQLabel(
i18n("Kexi will create a new blank database project.")+clickMsg, templPageFrame );
- lbl_blank->setAlignment(Qt::AlignAuto|Qt::AlignTop|Qt::WordBreak);
+ lbl_blank->tqsetAlignment(TQt::AlignAuto|TQt::AlignTop|TQt::WordBreak);
lbl_blank->setMargin(0);
tmplyr->addWidget( lbl_blank );
tmplyr->addStretch(1);
@@ -332,37 +332,37 @@ void KexiStartupDialog::setupPageTemplates()
#ifdef DB_TEMPLATES
//- page "templates"
d->templatesSectionID_templates = itemID++;
- QString none;
- QString kexi_sqlite_icon_name
+ TQString none;
+ TQString kexi_sqlite_icon_name
= KMimeType::mimeType( KexiDB::Driver::defaultFileBasedDriverMimeType() )->icon(none,0);
templPageFrame = d->templatesWidget->addPage (
i18n("Keep this text narrow: split to multiple rows if needed", "Create From\nTemplate"),
i18n("New Database Project From Template"), DesktopIcon(kexi_sqlite_icon_name) );
- tmplyr = new QVBoxLayout(templPageFrame, 0, KDialogBase::spacingHint());
- QLabel *lbl_templ = new QLabel(
+ tmplyr = new TQVBoxLayout(templPageFrame, 0, KDialogBase::spacingHint());
+ TQLabel *lbl_templ = new TQLabel(
i18n("Kexi will create a new database project using selected template.\n"
"Select template and click \"OK\" button to proceed."), templPageFrame );
- lbl_templ->setAlignment(Qt::AlignAuto|Qt::AlignTop|Qt::WordBreak);
+ lbl_templ->tqsetAlignment(TQt::AlignAuto|TQt::AlignTop|TQt::WordBreak);
lbl_templ->setMargin(0);
tmplyr->addWidget( lbl_templ );
d->viewTemplates = new KexiStartupDialogTemplatesPage( templPageFrame );
tmplyr->addWidget( d->viewTemplates );
- connect(d->viewTemplates,SIGNAL(selected(const QString&)),
- this,SLOT(templateSelected(const QString&)));
-/* connect(d->viewTemplates->templates,SIGNAL(returnPressed(QIconViewItem*)),
- this,SLOT(templateItemExecuted(QIconViewItem*)));
- connect(d->viewTemplates->templates,SIGNAL(currentChanged(QIconViewItem*)),
- this,SLOT(templateItemSelected(QIconViewItem*)));*/
+ connect(d->viewTemplates,TQT_SIGNAL(selected(const TQString&)),
+ this,TQT_SLOT(templateSelected(const TQString&)));
+/* connect(d->viewTemplates->templates,TQT_SIGNAL(returnPressed(TQIconViewItem*)),
+ this,TQT_SLOT(templateItemExecuted(TQIconViewItem*)));
+ connect(d->viewTemplates->templates,TQT_SIGNAL(currentChanged(TQIconViewItem*)),
+ this,TQT_SLOT(templateItemSelected(TQIconViewItem*)));*/
/*later
templPageFrame = d->templatesWidget->addPage (
i18n("Personal Databases"), i18n("New Personal Database Project Templates"), DesktopIcon("folder_home") );
- tmplyr = new QVBoxLayout(templPageFrame, 0, KDialogBase::spacingHint());
- d->viewPersonalTempl = new TemplatesPage( Vertical, templPageFrame, "personal_page" );
+ tmplyr = new TQVBoxLayout(templPageFrame, 0, KDialogBase::spacingHint());
+ d->viewPersonalTempl = new TemplatesPage(Qt::Vertical, templPageFrame, "personal_page" );
tmplyr->addWidget( d->viewPersonalTempl );
- connect(d->viewPersonalTempl->templates,SIGNAL(doubleClicked(QIconViewItem*)),this,SLOT(templateItemExecuted(QIconViewItem*)));
- connect(d->viewPersonalTempl->templates,SIGNAL(returnPressed(QIconViewItem*)),this,SLOT(templateItemExecuted(QIconViewItem*)));
- connect(d->viewPersonalTempl->templates,SIGNAL(currentChanged(QIconViewItem*)),this,SLOT(templateItemSelected(QIconViewItem*)));
+ connect(d->viewPersonalTempl->templates,TQT_SIGNAL(doubleClicked(TQIconViewItem*)),this,TQT_SLOT(templateItemExecuted(TQIconViewItem*)));
+ connect(d->viewPersonalTempl->templates,TQT_SIGNAL(returnPressed(TQIconViewItem*)),this,TQT_SLOT(templateItemExecuted(TQIconViewItem*)));
+ connect(d->viewPersonalTempl->templates,TQT_SIGNAL(currentChanged(TQIconViewItem*)),this,TQT_SLOT(templateItemSelected(TQIconViewItem*)));
*/
//- page "business db"
@@ -371,12 +371,12 @@ void KexiStartupDialog::setupPageTemplates()
templPageFrame = d->templatesWidget->addPage (
i18n("Business Databases"), i18n("New Business Database Project Templates"),
DesktopIcon( "business_user" ));
- tmplyr = new QVBoxLayout(templPageFrame, 0, KDialogBase::spacingHint());
- d->viewBusinessTempl = new TemplatesPage( Vertical, templPageFrame, "business_page" );
+ tmplyr = new TQVBoxLayout(templPageFrame, 0, KDialogBase::spacingHint());
+ d->viewBusinessTempl = new TemplatesPage(Qt::Vertical, templPageFrame, "business_page" );
tmplyr->addWidget( d->viewBusinessTempl );
- connect(d->viewBusinessTempl->templates,SIGNAL(doubleClicked(QIconViewItem*)),this,SLOT(templateItemExecuted(QIconViewItem*)));
- connect(d->viewBusinessTempl->templates,SIGNAL(returnPressed(QIconViewItem*)),this,SLOT(templateItemExecuted(QIconViewItem*)));
- connect(d->viewBusinessTempl->templates,SIGNAL(currentChanged(QIconViewItem*)),this,SLOT(templateItemSelected(QIconViewItem*)));
+ connect(d->viewBusinessTempl->templates,TQT_SIGNAL(doubleClicked(TQIconViewItem*)),this,TQT_SLOT(templateItemExecuted(TQIconViewItem*)));
+ connect(d->viewBusinessTempl->templates,TQT_SIGNAL(returnPressed(TQIconViewItem*)),this,TQT_SLOT(templateItemExecuted(TQIconViewItem*)));
+ connect(d->viewBusinessTempl->templates,TQT_SIGNAL(currentChanged(TQIconViewItem*)),this,TQT_SLOT(templateItemSelected(TQIconViewItem*)));
*/
#endif //DB_TEMPLATES
@@ -385,17 +385,17 @@ void KexiStartupDialog::setupPageTemplates()
templPageFrame = d->templatesWidget->addPage(
i18n("Import Existing\nDatabase"), i18n("Import Existing Database as New Database Project"),
DesktopIcon("database_import") );
- tmplyr = new QVBoxLayout(templPageFrame, 0, KDialogBase::spacingHint());
- QLabel *lbl_import = new QLabel(
+ tmplyr = new TQVBoxLayout(templPageFrame, 0, KDialogBase::spacingHint());
+ TQLabel *lbl_import = new TQLabel(
i18n("Kexi will import the structure and data of an existing database as a new database project.")
+clickMsg, templPageFrame );
- lbl_import->setAlignment(Qt::AlignAuto|Qt::AlignTop|Qt::WordBreak);
+ lbl_import->tqsetAlignment(TQt::AlignAuto|TQt::AlignTop|TQt::WordBreak);
lbl_import->setMargin(0);
tmplyr->addWidget( lbl_import );
tmplyr->addStretch(1);
}
-void KexiStartupDialog::slotPageShown(QWidget *page)
+void KexiStartupDialog::slotPageShown(TQWidget *page)
{
int idx = d->templatesWidget->pageIndex(page);
// KIconView *templ = 0;
@@ -436,12 +436,12 @@ void KexiStartupDialog::slotPageShown(QWidget *page)
}
#if 0
-void KexiStartupDialog::templateItemSelected(QIconViewItem *)
+void KexiStartupDialog::templateItemSelected(TQIconViewItem *)
{
updateDialogOKButton(d->pageTemplates);
}
-void KexiStartupDialog::templateItemExecuted(QIconViewItem *item)
+void KexiStartupDialog::templateItemExecuted(TQIconViewItem *item)
{
if (!item)
return;
@@ -454,10 +454,10 @@ void KexiStartupDialog::templateItemExecuted(QIconViewItem *item)
void KexiStartupDialog::updateSelectedTemplateKeyInfo()
{
if (activePageIndex()!=d->pageTemplatesID) {//not a 'new db' tab is selected
- d->selectedTemplateKey=QString::null;
+ d->selectedTemplateKey=TQString();
return;
}
- QIconViewItem *item;
+ TQIconViewItem *item;
if (d->templatesWidget->activePageIndex()==d->templatesSectionID_blank) {
d->selectedTemplateKey = "blank";
}
@@ -468,25 +468,25 @@ void KexiStartupDialog::updateSelectedTemplateKeyInfo()
else if (d->templatesWidget->activePageIndex()==d->templatesSectionID_templates) {
item = d->viewTemplates->templates->currentItem();
if (!item) {
- d->selectedTemplateKey=QString::null;
+ d->selectedTemplateKey=TQString();
return;
}
- d->selectedTemplateKey=QString("personal/")+static_cast<TemplateItem*>(item)->key;
+ d->selectedTemplateKey=TQString("personal/")+static_cast<TemplateItem*>(item)->key;
}
/*later?
else if (d->templatesWidget->activePageIndex()==d->templatesSectionID_custom2) {
item = d->viewBusinessTempl->templates->currentItem();
if (!item) {
- d->selectedTemplateKey=QString::null;
+ d->selectedTemplateKey=TQString();
return;
}
- d->selectedTemplateKey=QString("business/")+static_cast<TemplateItem*>(item)->key;
+ d->selectedTemplateKey=TQString("business/")+static_cast<TemplateItem*>(item)->key;
}*/
#endif
}
#endif // 0
-void KexiStartupDialog::tabShown(QWidget *w)
+void KexiStartupDialog::tabShown(TQWidget *w)
{
// kdDebug() << "KexiStartupDialog::tabShown " << (long)w << " "<< long(d->pageTemplates)<<endl;
@@ -497,7 +497,7 @@ void KexiStartupDialog::tabShown(QWidget *w)
}
}
-void KexiStartupDialog::updateDialogOKButton(QWidget *w)
+void KexiStartupDialog::updateDialogOKButton(TQWidget *w)
{
if (!w) {
int idx = activePageIndex();
@@ -534,7 +534,7 @@ void KexiStartupDialog::updateDialogOKButton(QWidget *w)
enableButton(Ok,enable);
}
-/*QString KexiStartupDialog::selectedTemplateKey() const
+/*TQString KexiStartupDialog::selectedTemplateKey() const
{
return d->selectedTemplateKey;
}*/
@@ -545,7 +545,7 @@ void KexiStartupDialog::setupPageOpenExisting()
d->pageOpenExisting = plainPage();
else
d->pageOpenExisting = addPage( i18n("Open &Existing Project") );
- QVBoxLayout *lyr = new QVBoxLayout( d->pageOpenExisting, 0, KDialogBase::spacingHint() );
+ TQVBoxLayout *lyr = new TQVBoxLayout( d->pageOpenExisting, 0, KDialogBase::spacingHint() );
d->openExistingConnWidget = new KexiConnSelectorWidget(*d->connSet,
":OpenExistingOrCreateNewProject",
@@ -559,11 +559,11 @@ void KexiStartupDialog::setupPageOpenExisting()
d->openExistingConnWidget->showAdvancedConn();
}
d->openExistingFileDlg = d->openExistingConnWidget->m_fileDlg;
- connect(d->openExistingFileDlg,SIGNAL(accepted()),this,SLOT(accept()));
- connect(d->openExistingConnWidget,SIGNAL(connectionItemExecuted(ConnectionDataLVItem*)),
- this,SLOT(connectionItemForOpenExistingExecuted(ConnectionDataLVItem*)));
- connect(d->openExistingConnWidget,SIGNAL(connectionItemHighlighted(ConnectionDataLVItem*)),
- this,SLOT(connectionItemForOpenExistingHighlighted(ConnectionDataLVItem*)));
+ connect(d->openExistingFileDlg,TQT_SIGNAL(accepted()),this,TQT_SLOT(accept()));
+ connect(d->openExistingConnWidget,TQT_SIGNAL(connectionItemExecuted(ConnectionDataLVItem*)),
+ this,TQT_SLOT(connectionItemForOpenExistingExecuted(ConnectionDataLVItem*)));
+ connect(d->openExistingConnWidget,TQT_SIGNAL(connectionItemHighlighted(ConnectionDataLVItem*)),
+ this,TQT_SLOT(connectionItemForOpenExistingHighlighted(ConnectionDataLVItem*)));
}
void KexiStartupDialog::connectionItemForOpenExistingExecuted(ConnectionDataLVItem *item)
@@ -602,14 +602,14 @@ void KexiStartupDialog::showAdvancedConnForOpenExisting()
d->openExistingConnWidget->showAdvancedConn();
}
-QString KexiStartupDialog::selectedFileName() const
+TQString KexiStartupDialog::selectedFileName() const
{
if (d->result == OpenExistingResult)
return d->existingFileToOpen;
else if (d->result == CreateFromTemplateResult && d->viewTemplates)
return d->viewTemplates->selectedFileName();
else
- return QString::null;
+ return TQString();
}
KexiDB::ConnectionData* KexiStartupDialog::selectedExistingConnection() const
@@ -617,7 +617,7 @@ KexiDB::ConnectionData* KexiStartupDialog::selectedExistingConnection() const
return d->selectedExistingConnection;
}
-void KexiStartupDialog::existingFileSelected(const QString &f)
+void KexiStartupDialog::existingFileSelected(const TQString &f)
{
if (f.isEmpty())
return;
@@ -629,11 +629,11 @@ void KexiStartupDialog::setupPageOpenRecent()
{
#ifdef KEXI_STARTUP_SHOW_RECENT
d->pageOpenRecent = addPage( i18n("Open &Recent Project") );
- QVBoxLayout *lyr = new QVBoxLayout( d->pageOpenRecent, 0, KDialogBase::spacingHint() );
+ TQVBoxLayout *lyr = new TQVBoxLayout( d->pageOpenRecent, 0, KDialogBase::spacingHint() );
lyr->addWidget( d->prj_selector = new KexiProjectSelectorWidget(
d->pageOpenRecent, "prj_selector", d->recentProjects ) );
- connect(d->prj_selector,SIGNAL(projectExecuted(KexiProjectData*)),
- this,SLOT(recentProjectItemExecuted(KexiProjectData*)));
+ connect(d->prj_selector,TQT_SIGNAL(projectExecuted(KexiProjectData*)),
+ this,TQT_SLOT(recentProjectItemExecuted(KexiProjectData*)));
#endif
}
@@ -654,12 +654,12 @@ void KexiStartupDialog::recentProjectItemExecuted(KexiProjectData *data)
}
//! used for accepting templates dialog with just return key press
-bool KexiStartupDialog::eventFilter( QObject *o, QEvent *e )
+bool KexiStartupDialog::eventFilter( TQObject *o, TQEvent *e )
{
if (o==d->templatesWidget_IconListBox && d->templatesWidget_IconListBox) {
- if (e->type()==QEvent::KeyPress
- && (static_cast<QKeyEvent*>(e)->key()==Key_Enter || static_cast<QKeyEvent*>(e)->key()==Key_Return)
- || e->type()==QEvent::MouseButtonDblClick)
+ if (e->type()==TQEvent::KeyPress
+ && (TQT_TQKEYEVENT(e)->key()==Key_Enter || TQT_TQKEYEVENT(e)->key()==Key_Return)
+ || e->type()==TQEvent::MouseButtonDblClick)
{
const int t_id = d->templatesWidget->activePageIndex();
if (t_id==d->templatesSectionID_blank || t_id==d->templatesSectionID_import) {
@@ -682,16 +682,16 @@ int KexiStartupDialog::activePageIndex() const
return 0; //there is always "plain page" #0 selected
}
-void KexiStartupDialog::templateSelected(const QString& fileName)
+void KexiStartupDialog::templateSelected(const TQString& fileName)
{
if (!fileName.isEmpty())
accept();
}
-QValueList<KexiProjectData::ObjectInfo> KexiStartupDialog::autoopenObjects() const
+TQValueList<KexiProjectData::ObjectInfo> KexiStartupDialog::autoopenObjects() const
{
if (d->result != CreateFromTemplateResult || !d->viewTemplates)
- QValueList<KexiProjectData::ObjectInfo>();
+ TQValueList<KexiProjectData::ObjectInfo>();
return d->viewTemplates->autoopenObjectsForSelectedTemplate();
}