summaryrefslogtreecommitdiffstats
path: root/kexi/main/startup/KexiStartup.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/main/startup/KexiStartup.h')
-rw-r--r--kexi/main/startup/KexiStartup.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/kexi/main/startup/KexiStartup.h b/kexi/main/startup/KexiStartup.h
index 294ad7dd..22c55440 100644
--- a/kexi/main/startup/KexiStartup.h
+++ b/kexi/main/startup/KexiStartup.h
@@ -20,8 +20,8 @@
#ifndef KEXI_STARTUPHANDLER_H
#define KEXI_STARTUPHANDLER_H
-#include <qstring.h>
-#include <qwidget.h>
+#include <tqstring.h>
+#include <tqwidget.h>
#include <kpassdlg.h>
#include <core/kexistartupdata.h>
@@ -40,8 +40,9 @@ namespace KexiDB {
class KEXIMAIN_EXPORT KexiDBPasswordDialog : public KPasswordDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- KexiDBPasswordDialog(QWidget *parent, KexiDB::ConnectionData& cdata, bool showDetailsButton = false);
+ KexiDBPasswordDialog(TQWidget *tqparent, KexiDB::ConnectionData& cdata, bool showDetailsButton = false);
virtual ~KexiDBPasswordDialog();
bool showConnectionDetailsRequested() const { return m_showConnectionDetailsRequested; }
@@ -58,9 +59,10 @@ class KEXIMAIN_EXPORT KexiDBPasswordDialog : public KPasswordDialog
/*! Handles startup actions for Kexi application.
*/
class KEXIMAIN_EXPORT KexiStartupHandler
- : public QObject, public KexiStartupData, public Kexi::ObjectStatus
+ : public TQObject, public KexiStartupData, public Kexi::ObjecttqStatus
{
Q_OBJECT
+ TQ_OBJECT
public:
KexiStartupHandler();
@@ -71,12 +73,12 @@ class KEXIMAIN_EXPORT KexiStartupHandler
#if 0
/*! Used for opening existing projects.
Detects project file type by mime type and returns project data, if it can be detected,
- otherwise - NULL. \a parent is passed as parent for potential error message boxes.
+ otherwise - NULL. \a tqparent is passed as tqparent for potential error message boxes.
Also uses \a cdata connection data for server-based projects.
cdata.driverName is adjusted, if a file-based project has been detected.
*/
static KexiProjectData* detectProjectData(
- KexiDB::ConnectionData& cdata, const QString &dbname, QWidget *parent);
+ KexiDB::ConnectionData& cdata, const TQString &dbname, TQWidget *tqparent);
#endif
/*! Options for detectDriverForFile() */
@@ -101,27 +103,27 @@ class KEXIMAIN_EXPORT KexiStartupHandler
- "shortcut" if the file looks like a shortcut to a project/connection file
- "connection" if the file looks like a connection data file.
- \a parent is passed as a parent for potential error message boxes.
+ \a tqparent is passed as a tqparent for potential error message boxes.
\a driverName is a preferred driver name.
\a options should be a combination of DetectDriverForFileOptions enum values. */
static tristate detectActionForFile(
- KexiStartupData::Import& detectedImportAction, QString& detectedDriverName,
- const QString& _suggestedDriverName,
- const QString &dbFileName, QWidget *parent = 0, int options = 0 );
+ KexiStartupData::Import& detectedImportAction, TQString& detectedDriverName,
+ const TQString& _suggestedDriverName,
+ const TQString &dbFileName, TQWidget *tqparent = 0, int options = 0 );
/*! Allows user to select a project with KexiProjectSelectorDialog.
\return selected project's data
Returns NULL and sets cancelled to true if the dialog was cancelled.
Returns NULL and sets cancelled to false if there was an error.
*/
- KexiProjectData* selectProject(KexiDB::ConnectionData *cdata, bool& cancelled, QWidget *parent = 0);
+ KexiProjectData* selectProject(KexiDB::ConnectionData *cdata, bool& cancelled, TQWidget *tqparent = 0);
protected slots:
void slotSaveShortcutFileChanges();
// void slotShowConnectionDetails();
protected:
- bool getAutoopenObjects(KCmdLineArgs *args, const QCString &action_name);
+ bool getAutoopenObjects(KCmdLineArgs *args, const TQCString &action_name);
KexiStartupHandlerPrivate *d;
};