diff options
Diffstat (limited to 'src/komposelayout.h')
-rw-r--r-- | src/komposelayout.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/komposelayout.h b/src/komposelayout.h index ebb94bb..9bd088d 100644 --- a/src/komposelayout.h +++ b/src/komposelayout.h @@ -20,12 +20,12 @@ #ifndef KOMPOSELAYOUT_H #define KOMPOSELAYOUT_H -#include <qobject.h> -#include <qptrlist.h> +#include <tqobject.h> +#include <tqptrlist.h> #include "komposewidget.h" -class QRect; +class TQRect; enum LayoutType { TLAYOUT_GENERIC, // layouts all KomposeWidget classes TLAYOUT_TASKCONTAINERS // layouts containers only @@ -37,11 +37,11 @@ enum WrapDirections { WLAYOUT_NONE, WLAYOUT_HORIZONTAL, WLAYOUT_VERTICAL, WLAYOU /** The main layout class. -QLayout just didn't fit :( +TQLayout just didn't fit :( @author Hans Oischinger */ -class KomposeLayout : public QObject +class KomposeLayout : public TQObject { Q_OBJECT public: @@ -54,7 +54,7 @@ public: void setType( int t ); int getType() { return layoutType; } - const QPtrList<KomposeWidget> *getManagedWidgets() { return &list; } + const TQPtrList<KomposeWidget> *getManagedWidgets() { return &list; } int getNumofChilds() { return list.count(); } KomposeWidget* getNeighbour( const KomposeWidget* widget, int direction = DLAYOUT_RIGHT, @@ -64,25 +64,25 @@ public slots: void arrangeLayout(); protected: - KomposeWidget* getNeighbour( QPtrList<KomposeWidget> listToSearch, + KomposeWidget* getNeighbour( TQPtrList<KomposeWidget> listToSearch, const KomposeWidget* widget, int direction = DLAYOUT_RIGHT, int wrap = WLAYOUT_NONE ); void rearrangeContents(); - void rearrangeContents( const QRect& availRect, - const QPtrList<KomposeWidget> widgets, + void rearrangeContents( const TQRect& availRect, + const TQPtrList<KomposeWidget> widgets, int rows = -1, int columns = -1, bool setMemberRowsCols = true ); private: // List of all managed childs - QPtrList<KomposeWidget> list; + TQPtrList<KomposeWidget> list; // List of container childs seperated by empty/full - QPtrList<KomposeWidget> filledContainers; - QPtrList<KomposeWidget> emptyContainers; + TQPtrList<KomposeWidget> filledContainers; + TQPtrList<KomposeWidget> emptyContainers; - QSize currentSize; + TQSize currentSize; int layoutType; int spacing; bool widgetsChanged; |