summaryrefslogtreecommitdiffstats
path: root/kaddressbook/views/cardview.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 /kaddressbook/views/cardview.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 'kaddressbook/views/cardview.h')
-rw-r--r--kaddressbook/views/cardview.h84
1 files changed, 42 insertions, 42 deletions
diff --git a/kaddressbook/views/cardview.h b/kaddressbook/views/cardview.h
index e38a82d5..6539f445 100644
--- a/kaddressbook/views/cardview.h
+++ b/kaddressbook/views/cardview.h
@@ -24,12 +24,12 @@
#ifndef CARDVIEW_H
#define CARDVIEW_H
-#include <qpair.h>
-#include <qpoint.h>
-#include <qptrlist.h>
-#include <qrect.h>
-#include <qscrollview.h>
-#include <qstring.h>
+#include <tqpair.h>
+#include <tqpoint.h>
+#include <tqptrlist.h>
+#include <tqrect.h>
+#include <tqscrollview.h>
+#include <tqstring.h>
class QLabel;
class QMouseEvent;
@@ -55,7 +55,7 @@ class CardViewItem
A single field in the card view. The first item is the label
and the second item is the value.
*/
- typedef QPair<QString, QString> Field;
+ typedef QPair<TQString, TQString> Field;
/**
Constructor.
@@ -65,26 +65,26 @@ class CardViewItem
appear at the top of the card. This is also the string that will
be used to sort the cards in the view.
*/
- CardViewItem( CardView *parent, const QString &caption = QString() );
+ CardViewItem( CardView *parent, const TQString &caption = TQString() );
virtual ~CardViewItem();
/**
- @return The caption of the card, or QString::null if none was ever set.
+ @return The caption of the card, or TQString::null if none was ever set.
*/
- const QString &caption() const;
+ const TQString &caption() const;
/**
Sets the caption of the card. This is the text that will
appear at the top of the card. This is also the string that will
be used to sort the cards in the view.
*/
- void setCaption( const QString &caption );
+ void setCaption( const TQString &caption );
/**
Paints the card using the given painter and color group. The
card will handle painting itself selected if it is selected.
*/
- virtual void paintCard( QPainter *p, QColorGroup &cg );
+ virtual void paintCard( TQPainter *p, TQColorGroup &cg );
/**
Repaints the card. This is done by sending a repaint event to the
@@ -99,17 +99,17 @@ class CardViewItem
within a card.
@param value The value of the field.
*/
- void insertField( const QString &label, const QString &value );
+ void insertField( const TQString &label, const TQString &value );
/**
Removes the field with label <i>label</i> from the card.
*/
- void removeField( const QString &label );
+ void removeField( const TQString &label );
/**
@return The value of the field with label <i>label</i>.
*/
- QString fieldValue( const QString &label ) const;
+ TQString fieldValue( const TQString &label ) const;
/**
Removes all the fields from this card.
@@ -133,14 +133,14 @@ class CardViewItem
a certain amount of time. If the label or value at pos is obscured
(trimmed) make the label display the full text.
*/
- void showFullString( const QPoint &pos, CardViewTip *tip );
+ void showFullString( const TQPoint &pos, CardViewTip *tip );
/**
@return a pointer to the Field at the position itempos
in this item. 0 is returned if itempos is in the caption.
@param itempos the position in item coordinates
*/
- Field *fieldAt( const QPoint &itempos ) const;
+ Field *fieldAt( const TQPoint &itempos ) const;
CardView *cardView() const { return mView; };
@@ -173,7 +173,7 @@ class CardViewItem
<i>width</i>, then the string will be trimmed and a '...' will
be appended.
*/
- QString trimString( const QString &text, int width, QFontMetrics &fm ) const;
+ TQString trimString( const TQString &text, int width, TQFontMetrics &fm ) const;
CardViewItemPrivate *d;
CardView *mView;
@@ -186,8 +186,8 @@ class CardViewItem
displays multiple cards in a grid. The Cards are sorted based on their
caption.
- The CardView class is designed to mirror the API of the QListView or
- QIconView. The CardView is also completely independant of KAddressBook and
+ The CardView class is designed to mirror the API of the TQListView or
+ TQIconView. The CardView is also completely independant of KAddressBook and
can be used elsewhere. With the exception of a few simple config checks,
the CardView is also 100% independant of KDE.
*/
@@ -201,7 +201,7 @@ class CardView : public QScrollView
/**
Constructor.
*/
- CardView( QWidget *parent, const char *name );
+ CardView( TQWidget *parent, const char *name );
virtual ~CardView();
/**
@@ -239,12 +239,12 @@ class CardView : public QScrollView
@return The item found at the given point, or 0 if there is no item
at that point.
*/
- CardViewItem *itemAt( const QPoint &viewPos ) const;
+ CardViewItem *itemAt( const TQPoint &viewPos ) const;
/**
@return The bounding rect of the given item.
*/
- QRect itemRect( const CardViewItem *item ) const;
+ TQRect itemRect( const CardViewItem *item ) const;
/**
Ensures that the given item is in the viewable area of the widget
@@ -320,7 +320,7 @@ class CardView : public QScrollView
@return The first matching item, or 0 if no items match.
*/
- CardViewItem *findItem( const QString &text, const QString &label,
+ CardViewItem *findItem( const TQString &text, const TQString &label,
Qt::StringComparisonMode compare = Qt::BeginsWith ) const;
/**
@@ -390,7 +390,7 @@ class CardView : public QScrollView
which is 80. It is currently not checked, so setting a value greater than 40
will probably mean a crash in the items painting routine.
*/
- // Note: I looked for a value in QStyle::PixelMetric to use, but I could
+ // Note: I looked for a value in TQStyle::PixelMetric to use, but I could
// not see a useful one. One may turn up in a future version of Qt.
uint itemMargin() const;
@@ -405,7 +405,7 @@ class CardView : public QScrollView
column, between the items and column separators if drawn, and between
the items and the borders of the widget. The default value is set to 10.
*/
- // Note: There is no useful QStyle::PixelMetric to use for this atm.
+ // Note: There is no useful TQStyle::PixelMetric to use for this atm.
// An option would be using KDialog::spacingHint().
uint itemSpacing() const;
@@ -428,17 +428,17 @@ class CardView : public QScrollView
/**
Sets the header font
*/
- void setHeaderFont( const QFont &fnt );
+ void setHeaderFont( const TQFont &fnt );
/**
@return the header font
*/
- QFont headerFont() const;
+ TQFont headerFont() const;
/**
Reimplementation from QWidget
*/
- void setFont( const QFont &fnt );
+ void setFont( const TQFont &fnt );
/**
Sets the column separator width
@@ -505,24 +505,24 @@ class CardView : public QScrollView
/**
Emitted when the context menu is requested in some way.
*/
- void contextMenuRequested( CardViewItem*, const QPoint& );
+ void contextMenuRequested( CardViewItem*, const TQPoint& );
protected:
/**
Determines which cards intersect that region and tells them to paint
themselves.
*/
- void drawContents( QPainter *p, int clipx, int clipy, int clipw, int cliph );
+ void drawContents( TQPainter *p, int clipx, int clipy, int clipw, int cliph );
/**
Sets the layout to dirty and repaints.
*/
- void resizeEvent( QResizeEvent* );
+ void resizeEvent( TQResizeEvent* );
/**
Changes the direction the canvas scolls.
*/
- void contentsWheelEvent( QWheelEvent* );
+ void contentsWheelEvent( TQWheelEvent* );
/**
Sets the layout to dirty and calls for a repaint.
@@ -536,18 +536,18 @@ class CardView : public QScrollView
*/
void calcLayout();
- virtual void contentsMousePressEvent( QMouseEvent* );
- virtual void contentsMouseMoveEvent( QMouseEvent* );
- virtual void contentsMouseReleaseEvent( QMouseEvent* );
- virtual void contentsMouseDoubleClickEvent( QMouseEvent* );
+ virtual void contentsMousePressEvent( TQMouseEvent* );
+ virtual void contentsMouseMoveEvent( TQMouseEvent* );
+ virtual void contentsMouseReleaseEvent( TQMouseEvent* );
+ virtual void contentsMouseDoubleClickEvent( TQMouseEvent* );
- virtual void enterEvent( QEvent* );
- virtual void leaveEvent( QEvent* );
+ virtual void enterEvent( TQEvent* );
+ virtual void leaveEvent( TQEvent* );
- virtual void focusInEvent( QFocusEvent* );
- virtual void focusOutEvent( QFocusEvent* );
+ virtual void focusInEvent( TQFocusEvent* );
+ virtual void focusOutEvent( TQFocusEvent* );
- virtual void keyPressEvent( QKeyEvent* );
+ virtual void keyPressEvent( TQKeyEvent* );
/**
Overload this method to be told when a drag should be started.