diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kontact/plugins/knotes/knotes_part_p.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kontact/plugins/knotes/knotes_part_p.h')
-rw-r--r-- | kontact/plugins/knotes/knotes_part_p.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kontact/plugins/knotes/knotes_part_p.h b/kontact/plugins/knotes/knotes_part_p.h index 55a0374b6..0bf073f3a 100644 --- a/kontact/plugins/knotes/knotes_part_p.h +++ b/kontact/plugins/knotes/knotes_part_p.h @@ -32,8 +32,8 @@ #ifndef KNOTES_PART_P_H #define KNOTES_PART_P_H -#include <qlayout.h> -#include <qlabel.h> +#include <tqlayout.h> +#include <tqlabel.h> #include <kactioncollection.h> #include <klocale.h> @@ -67,8 +67,8 @@ class KNotesIconViewItem : public KIconViewItem setRenameEnabled( true ); KIconEffect effect; - QColor color( journal->customProperty( "KNotes", "BgColor" ) ); - QPixmap icon = KGlobal::iconLoader()->loadIcon( "knotes", KIcon::Desktop ); + TQColor color( journal->customProperty( "KNotes", "BgColor" ) ); + TQPixmap icon = KGlobal::iconLoader()->loadIcon( "knotes", KIcon::Desktop ); icon = effect.apply( icon, KIconEffect::Colorize, 1, color, false ); setPixmap( icon ); setText( journal->summary() ); @@ -79,7 +79,7 @@ class KNotesIconViewItem : public KIconViewItem return mJournal; } - virtual void setText( const QString& text ) + virtual void setText( const TQString& text ) { KIconViewItem::setText( text ); mJournal->setSummary( text ); @@ -93,10 +93,10 @@ class KNotesIconViewItem : public KIconViewItem class KNotesIconView : public KIconView { protected: - QDragObject* dragObject() + TQDragObject* dragObject() { - QValueList<KNotesIconViewItem*> selectedItems; - for ( QIconViewItem *it = firstItem(); it; it = it->nextItem() ) { + TQValueList<KNotesIconViewItem*> selectedItems; + for ( TQIconViewItem *it = firstItem(); it; it = it->nextItem() ) { if ( it->isSelected() ) selectedItems.append( static_cast<KNotesIconViewItem *>( it ) ); } @@ -117,7 +117,7 @@ class KNoteEditDlg : public KDialogBase, virtual public KXMLGUIClient Q_OBJECT public: - KNoteEditDlg( QWidget *parent = 0, const char *name = 0 ) + KNoteEditDlg( TQWidget *parent = 0, const char *name = 0 ) : KDialogBase( Plain, i18n( "Edit Note" ), Ok | Cancel, Ok, parent, name, true, true ) { @@ -128,11 +128,11 @@ class KNoteEditDlg : public KDialogBase, virtual public KXMLGUIClient setXMLFile( "knotesui.rc" ); actionCollection()->setWidget( this ); - QWidget *page = plainPage(); - QVBoxLayout *layout = new QVBoxLayout( page ); + TQWidget *page = plainPage(); + TQVBoxLayout *layout = new TQVBoxLayout( page ); - QHBoxLayout *hbl = new QHBoxLayout( layout, marginHint() ); - QLabel *label = new QLabel( page); + TQHBoxLayout *hbl = new TQHBoxLayout( layout, marginHint() ); + TQLabel *label = new TQLabel( page); label->setText( i18n( "Name:" ) ); hbl->addWidget( label,0 ); mTitleEdit= new KLineEdit( page, "name" ); @@ -152,22 +152,22 @@ class KNoteEditDlg : public KDialogBase, virtual public KXMLGUIClient layout->addWidget( mNoteEdit ); } - QString text() const + TQString text() const { return mNoteEdit->text(); } - void setText( const QString& text ) + void setText( const TQString& text ) { mNoteEdit->setText( text ); } - QString title() const + TQString title() const { return mTitleEdit->text(); } - void setTitle( const QString& text ) + void setTitle( const TQString& text ) { mTitleEdit->setText( text ); } |