summaryrefslogtreecommitdiffstats
path: root/src/komposelayout.h
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-03-30 14:11:34 +0300
committerMavridis Philippe <mavridisf@gmail.com>2021-03-30 14:11:34 +0300
commitd991b7f387775dc1071fb0c0af78de1c613ca991 (patch)
treeeb7c978130acb1b2c93eeea98be2f647372c6fac /src/komposelayout.h
parent1bd3c5b42f1570b2100a4986f638f2723ee37ec4 (diff)
downloadkompose-d991b7f387775dc1071fb0c0af78de1c613ca991.tar.gz
kompose-d991b7f387775dc1071fb0c0af78de1c613ca991.zip
Qt3->TQt conversion.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/komposelayout.h')
-rw-r--r--src/komposelayout.h26
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;