summaryrefslogtreecommitdiffstats
path: root/drkonqi/toplevel.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /drkonqi/toplevel.cpp
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'drkonqi/toplevel.cpp')
-rw-r--r--drkonqi/toplevel.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/drkonqi/toplevel.cpp b/drkonqi/toplevel.cpp
index a691b30c5..488edaebd 100644
--- a/drkonqi/toplevel.cpp
+++ b/drkonqi/toplevel.cpp
@@ -25,9 +25,9 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************/
-#include <qstring.h>
-#include <qlabel.h>
-#include <qhbox.h>
+#include <tqstring.h>
+#include <tqlabel.h>
+#include <tqhbox.h>
#include "netwm.h"
@@ -47,7 +47,7 @@
#include "toplevel.h"
#include "toplevel.moc"
-Toplevel :: Toplevel(KrashConfig *krashconf, QWidget *parent, const char *name)
+Toplevel :: Toplevel(KrashConfig *krashconf, TQWidget *parent, const char *name)
: KDialogBase( Tabbed,
krashconf->programName(),
User3 | User2 | User1 | Close,
@@ -61,17 +61,17 @@ Toplevel :: Toplevel(KrashConfig *krashconf, QWidget *parent, const char *name)
),
m_krashconf(krashconf), m_bugreport(0)
{
- QHBox *page = addHBoxPage(i18n("&General"));
+ TQHBox *page = addHBoxPage(i18n("&General"));
page->setSpacing(20);
// picture of konqi
- QLabel *lab = new QLabel(page);
- lab->setFrameStyle(QFrame::Panel | QFrame::Sunken);
- QPixmap pix(locate("appdata", QString::fromLatin1("pics/konqi.png")));
+ TQLabel *lab = new TQLabel(page);
+ lab->setFrameStyle(TQFrame::Panel | TQFrame::Sunken);
+ TQPixmap pix(locate("appdata", TQString::fromLatin1("pics/konqi.png")));
lab->setPixmap(pix);
lab->setFixedSize( lab->sizeHint() );
- QLabel * info = new QLabel(generateText(), page);
+ TQLabel * info = new TQLabel(generateText(), page);
info->setMinimumSize(info->sizeHint());
if (m_krashconf->showBacktrace())
@@ -84,8 +84,8 @@ Toplevel :: Toplevel(KrashConfig *krashconf, QWidget *parent, const char *name)
showButton( User2, m_krashconf->showDebugger() );
showButton( User3, false );
- connect(this, SIGNAL(closeClicked()), SLOT(accept()));
- connect(m_krashconf, SIGNAL(newDebuggingApplication(const QString&)), SLOT(slotNewDebuggingApp(const QString&)));
+ connect(this, TQT_SIGNAL(closeClicked()), TQT_SLOT(accept()));
+ connect(m_krashconf, TQT_SIGNAL(newDebuggingApplication(const TQString&)), TQT_SLOT(slotNewDebuggingApp(const TQString&)));
if ( !m_krashconf->safeMode() && kapp->dcopClient()->attach() )
kapp->dcopClient()->registerAs( kapp->name() );
@@ -95,9 +95,9 @@ Toplevel :: ~Toplevel()
{
}
-QString Toplevel :: generateText() const
+TQString Toplevel :: generateText() const
{
- QString str;
+ TQString str;
if (!m_krashconf->errorDescriptionText().isEmpty())
str += i18n("<p><b>Short description</b></p><p>%1</p>")
@@ -151,13 +151,13 @@ void Toplevel :: slotUser1()
m_bugreport = new DrKBugReport(0, true, m_krashconf->aboutData());
if (i == KMessageBox::Yes) {
- QApplication::setOverrideCursor ( waitCursor );
+ TQApplication::setOverrideCursor ( waitCursor );
// generate the backtrace
BackTrace *backtrace = new BackTrace(m_krashconf, this);
- connect(backtrace, SIGNAL(someError()), SLOT(slotBacktraceSomeError()));
- connect(backtrace, SIGNAL(done(const QString &)),
- SLOT(slotBacktraceDone(const QString &)));
+ connect(backtrace, TQT_SIGNAL(someError()), TQT_SLOT(slotBacktraceSomeError()));
+ connect(backtrace, TQT_SIGNAL(done(const TQString &)),
+ TQT_SLOT(slotBacktraceDone(const TQString &)));
backtrace->start();
@@ -173,7 +173,7 @@ void Toplevel :: slotUser1()
void Toplevel :: slotUser2()
{
- QString str = m_krashconf->debugger();
+ TQString str = m_krashconf->debugger();
m_krashconf->expandString(str, true);
KProcess proc;
@@ -182,7 +182,7 @@ void Toplevel :: slotUser2()
proc.start(KProcess::DontCare);
}
-void Toplevel :: slotNewDebuggingApp(const QString& launchName)
+void Toplevel :: slotNewDebuggingApp(const TQString& launchName)
{
setButtonText( User3, launchName );
showButton( User3, true );
@@ -193,15 +193,15 @@ void Toplevel :: slotUser3()
m_krashconf->acceptDebuggingApp();
}
-void Toplevel :: slotBacktraceDone(const QString &str)
+void Toplevel :: slotBacktraceDone(const TQString &str)
{
// Do not translate.. This will be included in the _MAIL_.
- QString buf = QString::fromLatin1
+ TQString buf = TQString::fromLatin1
("\n\n\nHere is a backtrace generated by DrKonqi:\n") + str;
m_bugreport->setText(buf);
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
m_bugreport->exec();
delete m_bugreport;
@@ -210,7 +210,7 @@ void Toplevel :: slotBacktraceDone(const QString &str)
void Toplevel :: slotBacktraceSomeError()
{
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
KMessageBox::sorry(0, i18n("It was not possible to generate a backtrace."),
i18n("Backtrace Not Possible"));