summaryrefslogtreecommitdiffstats
path: root/kontact/src/iconsidepane.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kontact/src/iconsidepane.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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/src/iconsidepane.h')
-rw-r--r--kontact/src/iconsidepane.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/kontact/src/iconsidepane.h b/kontact/src/iconsidepane.h
index 281d25aec..89fb002a8 100644
--- a/kontact/src/iconsidepane.h
+++ b/kontact/src/iconsidepane.h
@@ -21,7 +21,7 @@
#ifndef KONTACT_ICONSIDEPANEBASE_H
#define KONTACT_ICONSIDEPANEBASE_H
-#include <qtooltip.h>
+#include <tqtooltip.h>
#include <klistbox.h>
@@ -44,7 +44,7 @@ enum IconViewMode { LargeIcons = 48, NormalIcons = 32, SmallIcons = 22, ShowText
/**
- A QListBoxPixmap Square Box with an optional icon and a text
+ A TQListBoxPixmap Square Box with an optional icon and a text
underneath.
*/
class EntryItem : public QListBoxItem
@@ -55,7 +55,7 @@ class EntryItem : public QListBoxItem
Kontact::Plugin *plugin() const { return mPlugin; }
- const QPixmap *pixmap() const { return &mPixmap; }
+ const TQPixmap *pixmap() const { return &mPixmap; }
Navigator* navigator() const;
@@ -65,20 +65,20 @@ class EntryItem : public QListBoxItem
/**
returns the width of this item.
*/
- virtual int width( const QListBox * ) const;
+ virtual int width( const TQListBox * ) const;
/**
returns the height of this item.
*/
- virtual int height( const QListBox * ) const;
+ virtual int height( const TQListBox * ) const;
protected:
void reloadPixmap();
- virtual void paint( QPainter *p );
+ virtual void paint( TQPainter *p );
private:
Kontact::Plugin *mPlugin;
- QPixmap mPixmap;
+ TQPixmap mPixmap;
bool mHasHover;
bool mPaintActive;
};
@@ -90,25 +90,25 @@ class EntryItem : public QListBoxItem
class EntryItemToolTip : public QToolTip
{
public:
- EntryItemToolTip( QListBox* parent )
- : QToolTip( parent->viewport() ), mListBox( parent )
+ EntryItemToolTip( TQListBox* parent )
+ : TQToolTip( parent->viewport() ), mListBox( parent )
{}
protected:
- void maybeTip( const QPoint& p ) {
+ void maybeTip( const TQPoint& p ) {
// We only show tooltips when there are no texts shown
if ( Prefs::self()->sidePaneShowText() ) return;
if ( !mListBox ) return;
- QListBoxItem* item = mListBox->itemAt( p );
+ TQListBoxItem* item = mListBox->itemAt( p );
if ( !item ) return;
- const QRect itemRect = mListBox->itemRect( item );
+ const TQRect itemRect = mListBox->itemRect( item );
if ( !itemRect.isValid() ) return;
const EntryItem *entryItem = static_cast<EntryItem*>( item );
- QString tipStr = entryItem->text();
+ TQString tipStr = entryItem->text();
tip( itemRect, tipStr );
}
private:
- QListBox* mListBox;
+ TQListBox* mListBox;
};
/**
@@ -120,38 +120,38 @@ class Navigator : public KListBox
public:
Navigator( SidePaneBase *parent = 0, const char *name = 0 );
- virtual void setSelected( QListBoxItem *, bool );
+ virtual void setSelected( TQListBoxItem *, bool );
- void updatePlugins( QValueList<Kontact::Plugin*> plugins );
+ void updatePlugins( TQValueList<Kontact::Plugin*> plugins );
- QSize sizeHint() const;
+ TQSize sizeHint() const;
void highlightItem( EntryItem* item );
IconViewMode viewMode() { return mViewMode; }
IconViewMode sizeIntToEnum(int size) const;
- const QPtrList<KAction> & actions() { return mActions; }
+ const TQPtrList<KAction> & actions() { return mActions; }
bool showIcons() const { return mShowIcons; }
bool showText() const { return mShowText; }
signals:
void pluginActivated( Kontact::Plugin * );
protected:
- void dragEnterEvent( QDragEnterEvent * );
- void dragMoveEvent ( QDragMoveEvent * );
- void dropEvent( QDropEvent * );
- void resizeEvent( QResizeEvent * );
- void enterEvent( QEvent* );
- void leaveEvent( QEvent* );
+ void dragEnterEvent( TQDragEnterEvent * );
+ void dragMoveEvent ( TQDragMoveEvent * );
+ void dropEvent( TQDropEvent * );
+ void resizeEvent( TQResizeEvent * );
+ void enterEvent( TQEvent* );
+ void leaveEvent( TQEvent* );
- void setHoverItem( QListBoxItem*, bool );
- void setPaintActiveItem( QListBoxItem*, bool );
+ void setHoverItem( TQListBoxItem*, bool );
+ void setPaintActiveItem( TQListBoxItem*, bool );
protected slots:
- void slotExecuted( QListBoxItem * );
- void slotMouseOn( QListBoxItem *item );
+ void slotExecuted( TQListBoxItem * );
+ void slotMouseOn( TQListBoxItem *item );
void slotMouseOff();
- void slotShowRMBMenu( QListBoxItem *, const QPoint& );
+ void slotShowRMBMenu( TQListBoxItem *, const TQPoint& );
void shortCutSelected( int );
void slotStopHighlight();
@@ -159,12 +159,12 @@ class Navigator : public KListBox
SidePaneBase *mSidePane;
IconViewMode mViewMode;
- QListBoxItem* mMouseOn;
+ TQListBoxItem* mMouseOn;
EntryItem* mHighlightItem;
- QSignalMapper *mMapper;
- QPtrList<KAction> mActions;
+ TQSignalMapper *mMapper;
+ TQPtrList<KAction> mActions;
bool mShowIcons;
bool mShowText;
};
@@ -173,7 +173,7 @@ class IconSidePane : public SidePaneBase
{
Q_OBJECT
public:
- IconSidePane( Core *core, QWidget *parent, const char *name = 0 );
+ IconSidePane( Core *core, TQWidget *parent, const char *name = 0 );
~IconSidePane();
virtual void indicateForegrunding( Kontact::Plugin* );
@@ -181,8 +181,8 @@ class IconSidePane : public SidePaneBase
public slots:
virtual void updatePlugins();
virtual void selectPlugin( Kontact::Plugin* );
- virtual void selectPlugin( const QString &name );
- const QPtrList<KAction> & actions() { return mNavigator->actions(); }
+ virtual void selectPlugin( const TQString &name );
+ const TQPtrList<KAction> & actions() { return mNavigator->actions(); }
private:
Navigator *mNavigator;