summaryrefslogtreecommitdiffstats
path: root/kate/utils
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 /kate/utils
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 'kate/utils')
-rw-r--r--kate/utils/dockviewbase.cpp42
-rw-r--r--kate/utils/dockviewbase.h20
-rw-r--r--kate/utils/listboxview.cpp4
-rw-r--r--kate/utils/listboxview.h4
-rw-r--r--kate/utils/messageview.cpp12
-rw-r--r--kate/utils/messageview.h10
6 files changed, 46 insertions, 46 deletions
diff --git a/kate/utils/dockviewbase.cpp b/kate/utils/dockviewbase.cpp
index 54a4d6d6e..76e5844ed 100644
--- a/kate/utils/dockviewbase.cpp
+++ b/kate/utils/dockviewbase.cpp
@@ -19,8 +19,8 @@
#include "dockviewbase.h"
#include "dockviewbase.moc"
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
//#include <kdebug.h>
@@ -29,22 +29,22 @@ namespace Kate {
// data storage
class DockViewBasePrivate {
public:
- QWidget *header;
- QLabel *lTitle;
- QLabel *lPrefix;
+ TQWidget *header;
+ TQLabel *lTitle;
+ TQLabel *lPrefix;
};
}
-Kate::DockViewBase::DockViewBase( QWidget* parent, const char* name )
- : QVBox( parent, name ),
+Kate::DockViewBase::DockViewBase( TQWidget* parent, const char* name )
+ : TQVBox( parent, name ),
d ( new Kate::DockViewBasePrivate )
{
- init( QString::null, QString::null );
+ init( TQString::null, TQString::null );
}
-Kate::DockViewBase::DockViewBase( const QString &prefix, const QString &title, QWidget* parent, const char* name )
- : QVBox( parent, name ),
+Kate::DockViewBase::DockViewBase( const TQString &prefix, const TQString &title, TQWidget* parent, const char* name )
+ : TQVBox( parent, name ),
d ( new Kate::DockViewBasePrivate )
{
init( prefix, title );
@@ -55,45 +55,45 @@ Kate::DockViewBase::~DockViewBase()
delete d;
}
-void Kate::DockViewBase::setTitlePrefix( const QString &prefix )
+void Kate::DockViewBase::setTitlePrefix( const TQString &prefix )
{
d->lPrefix->setText( prefix );
d->lPrefix->show();
}
-QString Kate::DockViewBase::titlePrefix() const
+TQString Kate::DockViewBase::titlePrefix() const
{
return d->lPrefix->text();
}
-void Kate::DockViewBase::setTitle( const QString &title )
+void Kate::DockViewBase::setTitle( const TQString &title )
{
d->lTitle->setText( title );
d->lTitle->show();
}
-QString Kate::DockViewBase::title() const
+TQString Kate::DockViewBase::title() const
{
return d->lTitle->text();
}
-void Kate::DockViewBase::setTitle( const QString &prefix, const QString &title )
+void Kate::DockViewBase::setTitle( const TQString &prefix, const TQString &title )
{
setTitlePrefix( prefix );
setTitle( title );
}
-void Kate::DockViewBase::init( const QString &prefix, const QString &title )
+void Kate::DockViewBase::init( const TQString &prefix, const TQString &title )
{
setSpacing( 4 );
- d->header = new QWidget( this );
- d->header->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed, true ) );
- QHBoxLayout *lo = new QHBoxLayout( d->header );
+ d->header = new TQWidget( this );
+ d->header->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed, true ) );
+ TQHBoxLayout *lo = new TQHBoxLayout( d->header );
lo->setSpacing( 6 );
lo->insertSpacing( 0, 6 );
- d->lPrefix = new QLabel( title, d->header );
+ d->lPrefix = new TQLabel( title, d->header );
lo->addWidget( d->lPrefix );
- d->lTitle = new QLabel( title, d->header );
+ d->lTitle = new TQLabel( title, d->header );
lo->addWidget( d->lTitle );
lo->setStretchFactor( d->lTitle, 1 );
lo->insertSpacing( -1, 6 );
diff --git a/kate/utils/dockviewbase.h b/kate/utils/dockviewbase.h
index 9e3010302..73d564e04 100644
--- a/kate/utils/dockviewbase.h
+++ b/kate/utils/dockviewbase.h
@@ -19,7 +19,7 @@
#ifndef _KATE_DOCKVIEW_BASE_H_
#define _KATE_DOCKVIEW_BASE_H_
-#include <qvbox.h>
+#include <tqvbox.h>
/**
* Namespace collecting as much of the internal Kate classes as we
@@ -50,50 +50,50 @@ namespace Kate
*/
-class DockViewBase : public QVBox {
+class DockViewBase : public TQVBox {
Q_OBJECT
public:
/**
Create a KateDockViewBase.
*/
- DockViewBase( QWidget *parent=0, const char *name=0 );
+ DockViewBase( TQWidget *parent=0, const char *name=0 );
/**
Create a KateDockViewBase with the title prefix @p prefix
and the title @p title.
*/
- DockViewBase( const QString &prefix, const QString &title, QWidget *parent=0, const char *name=0 );
+ DockViewBase( const TQString &prefix, const TQString &title, TQWidget *parent=0, const char *name=0 );
~DockViewBase();
/**
Set the title prefix to @p prefix.
*/
- void setTitlePrefix( const QString &prefix );
+ void setTitlePrefix( const TQString &prefix );
/**
@return The title prefix.
*/
- QString titlePrefix() const;
+ TQString titlePrefix() const;
/**
Set the title to @p title
*/
- void setTitle( const QString &title );
+ void setTitle( const TQString &title );
/**
Convenience method, sets both the prefix and title
*/
- void setTitle( const QString &prefix, const QString &title );
+ void setTitle( const TQString &prefix, const TQString &title );
/**
@return the title of the KateDockViewBase
*/
- QString title() const;
+ TQString title() const;
private:
/** Private initialization */
- void init( const QString &, const QString &);
+ void init( const TQString &, const TQString &);
class DockViewBasePrivate *d;
};
diff --git a/kate/utils/listboxview.cpp b/kate/utils/listboxview.cpp
index 69e103bad..a71ea038b 100644
--- a/kate/utils/listboxview.cpp
+++ b/kate/utils/listboxview.cpp
@@ -31,14 +31,14 @@ class ListboxViewPrivate {
}
-Kate::ListboxView::ListboxView( QWidget *parent, const char *name )
+Kate::ListboxView::ListboxView( TQWidget *parent, const char *name )
: Kate::DockViewBase( parent, name),
d( new Kate::ListboxViewPrivate)
{
d->listbox = new KListBox( this );
}
-Kate::ListboxView::ListboxView( const QString &titlePrefix, const QString &title, QWidget *parent, const char *name )
+Kate::ListboxView::ListboxView( const TQString &titlePrefix, const TQString &title, TQWidget *parent, const char *name )
: Kate::DockViewBase( titlePrefix, title, parent, name),
d( new Kate::ListboxViewPrivate)
{
diff --git a/kate/utils/listboxview.h b/kate/utils/listboxview.h
index 233b4798a..7fee0d808 100644
--- a/kate/utils/listboxview.h
+++ b/kate/utils/listboxview.h
@@ -29,8 +29,8 @@ namespace Kate
class ListboxView : public DockViewBase {
Q_OBJECT
public:
- ListboxView( QWidget *parent=0, const char *name=0 );
- ListboxView( const QString &titlePrefix, const QString &title, QWidget *parent=0, const char *name=0 );
+ ListboxView( TQWidget *parent=0, const char *name=0 );
+ ListboxView( const TQString &titlePrefix, const TQString &title, TQWidget *parent=0, const char *name=0 );
~ListboxView();
KListBox * listbox();
diff --git a/kate/utils/messageview.cpp b/kate/utils/messageview.cpp
index 2f0904433..40155f959 100644
--- a/kate/utils/messageview.cpp
+++ b/kate/utils/messageview.cpp
@@ -19,22 +19,22 @@
#include "messageview.h"
#include "messageview.moc"
-#include <qtextbrowser.h>
+#include <tqtextbrowser.h>
-Kate::MessageView::MessageView( QWidget *parent, const char *name )
+Kate::MessageView::MessageView( TQWidget *parent, const char *name )
: Kate::DockViewBase( parent, name )
{
- m_view = new QTextBrowser( this );
+ m_view = new TQTextBrowser( this );
// m_view->setFormat( Qt::richText ); // should be!!
- connect( m_view, SIGNAL( linkClicked( const QString & ) ),
- SIGNAL( linkClicked( const QString & ) ) );
+ connect( m_view, TQT_SIGNAL( linkClicked( const TQString & ) ),
+ TQT_SIGNAL( linkClicked( const TQString & ) ) );
}
Kate::MessageView::~MessageView()
{
}
-void Kate::MessageView::addMessage( const QString &msg )
+void Kate::MessageView::addMessage( const TQString &msg )
{
m_view->append( msg );
m_view->scrollToBottom();
diff --git a/kate/utils/messageview.h b/kate/utils/messageview.h
index d6d330842..248855515 100644
--- a/kate/utils/messageview.h
+++ b/kate/utils/messageview.h
@@ -26,7 +26,7 @@
This is a message view for displaying output from processes.
- It uses a QTextEdit in _ mode to display the text.
+ It uses a TQTextEdit in _ mode to display the text.
You can use HTML links, for example to allow the user to go
to a line in a precessed document.
@@ -52,18 +52,18 @@ namespace Kate
class MessageView : public DockViewBase {
Q_OBJECT
public:
- MessageView( QWidget *parent=0, const char *name=0 );
+ MessageView( TQWidget *parent=0, const char *name=0 );
~MessageView();
public slots:
- void addMessage( const QString &msg );
+ void addMessage( const TQString &msg );
void clear();
signals:
- void linkClicked( const QString & href );
+ void linkClicked( const TQString & href );
private:
- QTextBrowser *m_view;
+ TQTextBrowser *m_view;
};
}