summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-05 15:22:12 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-05 15:22:12 +0900
commit7be076f07a1669968ae1b37526f959129f37f196 (patch)
treea8f05ee8caef540d96534b691415c011af0e122a
parentefda7b84b278d73a2af32e4ceb0c7e470997e571 (diff)
downloadkima-7be076f07a1669968ae1b37526f959129f37f196.tar.gz
kima-7be076f07a1669968ae1b37526f959129f37f196.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--src/flowlayout.cpp16
-rw-r--r--src/flowlayout.h12
-rw-r--r--src/kima.cpp8
3 files changed, 18 insertions, 18 deletions
diff --git a/src/flowlayout.cpp b/src/flowlayout.cpp
index 8ca8d5d..9376474 100644
--- a/src/flowlayout.cpp
+++ b/src/flowlayout.cpp
@@ -67,15 +67,15 @@ TQLayoutItem* FlowLayoutIterator::takeCurrent(){
}
-FlowLayout::FlowLayout( TQWidget* parent, Qt::Orientation orientation, int border, int space, const char* name )
+FlowLayout::FlowLayout( TQWidget* parent, TQt::Orientation orientation, int border, int space, const char* name )
: TQLayout( parent, border, space, name ),
mOrientation(orientation), mLastItem(NULL){
}
-FlowLayout::FlowLayout( TQLayout* parent, Qt::Orientation orientation, int space, const char* name )
+FlowLayout::FlowLayout( TQLayout* parent, TQt::Orientation orientation, int space, const char* name )
: TQLayout( parent, space, name ),
mOrientation(orientation), mLastItem(NULL){
}
-FlowLayout::FlowLayout( Qt::Orientation orientation, int space, const char* name )
+FlowLayout::FlowLayout( TQt::Orientation orientation, int space, const char* name )
: TQLayout( space, name ),
mOrientation(orientation), mLastItem(NULL){
}
@@ -174,11 +174,11 @@ void FlowLayout::updatePositions(TDEConfig * inTDEConfig){
}
bool FlowLayout::hasHeightForWidth() const{
- return mOrientation != Qt::Horizontal;
+ return mOrientation != TQt::Horizontal;
}
bool FlowLayout::hasWidthForHeight() const{
- return mOrientation == Qt::Horizontal;
+ return mOrientation == TQt::Horizontal;
}
TQSize FlowLayout::sizeHint() const{
@@ -212,11 +212,11 @@ TQLayoutIterator FlowLayout::iterator(){
return TQLayoutIterator(new FlowLayoutIterator(&mLayoutItems));
}
-Qt::Orientation FlowLayout::getOrientation() const{
+TQt::Orientation FlowLayout::getOrientation() const{
return mOrientation;
}
-void FlowLayout::setOrientation(Qt::Orientation orientation){
+void FlowLayout::setOrientation(TQt::Orientation orientation){
mOrientation = orientation;
}
@@ -226,7 +226,7 @@ void FlowLayout::setGeometry( const TQRect& rect ){
}
int FlowLayout::doLayout( const TQRect& rect, bool testonly ){
- if(mOrientation == Qt::Horizontal)
+ if(mOrientation == TQt::Horizontal)
return doLayoutHorizontal(rect, testonly);
else
return doLayoutVertical(rect, testonly);
diff --git a/src/flowlayout.h b/src/flowlayout.h
index df68e66..47d8dbd 100644
--- a/src/flowlayout.h
+++ b/src/flowlayout.h
@@ -37,9 +37,9 @@ public:
ABOVE = 0,
BELOW = 1
};
- FlowLayout( TQWidget* parent, Qt::Orientation orientation=Qt::Horizontal, int border=0, int space=-1, const char* name=0 );
- FlowLayout( TQLayout* parent, Qt::Orientation orientation=Qt::Horizontal, int space=-1, const char* name=0 );
- FlowLayout( Qt::Orientation=Qt::Horizontal, int space=-1, const char* name=0 );
+ FlowLayout( TQWidget* parent, TQt::Orientation orientation=TQt::Horizontal, int border=0, int space=-1, const char* name=0 );
+ FlowLayout( TQLayout* parent, TQt::Orientation orientation=TQt::Horizontal, int space=-1, const char* name=0 );
+ FlowLayout( TQt::Orientation=TQt::Horizontal, int space=-1, const char* name=0 );
virtual ~FlowLayout();
/**
* tells all sources their positions
@@ -66,10 +66,10 @@ public:
TQSize minimumSize() const;
TQLayoutIterator iterator();
TQSizePolicy::ExpandData expanding() const;
- Qt::Orientation getOrientation() const;
+ TQt::Orientation getOrientation() const;
public slots:
- void setOrientation(Qt::Orientation orientation);
+ void setOrientation(TQt::Orientation orientation);
protected:
void setGeometry(const TQRect&);
@@ -78,7 +78,7 @@ private:
int doLayout( const TQRect&, bool testOnly = FALSE );
int doLayoutHorizontal( const TQRect&, bool testOnly );
int doLayoutVertical( const TQRect&, bool testOnly );
- Qt::Orientation mOrientation;
+ TQt::Orientation mOrientation;
TQPtrList<TQLayoutItem> mLayoutItems;
// this is the connection between a layout item and its source.
TQMap<TQLayoutItem*, Source*> mSources;
diff --git a/src/kima.cpp b/src/kima.cpp
index 214b40e..ff42185 100644
--- a/src/kima.cpp
+++ b/src/kima.cpp
@@ -306,7 +306,7 @@ void Kima::savePreferences(){
int Kima::widthForHeight(int inHeight) const{
//kdDebug() << "widthForHeight: " << height << endl;
- mLayout->setOrientation(Qt::Horizontal);
+ mLayout->setOrientation(TQt::Horizontal);
if(mCachedHeight != inHeight){
mCachedHeight = inHeight;
mCachedWFH = 0;
@@ -317,18 +317,18 @@ int Kima::widthForHeight(int inHeight) const{
int Kima::heightForWidth(int inWidth) const{
//kdDebug() << "heightForWidth: " << width << endl;
- mLayout->setOrientation(Qt::Vertical);
+ mLayout->setOrientation(TQt::Vertical);
return mLayout->heightForWidth(inWidth);
//return sizeHint().height();
}
void Kima::mousePressEvent(TQMouseEvent* inEvent ){
- if(inEvent->button() == Qt::RightButton){
+ if(inEvent->button() == TQt::RightButton){
mMenu->popup( inEvent->globalPos() );
if(mDraggedSourceItem)
mDraggedSourceItem->widget()->unsetCursor(); // unset drag cursor
}
- else if(inEvent->button() == Qt::LeftButton){
+ else if(inEvent->button() == TQt::LeftButton){
TQLayoutIterator it = mLayout->iterator();
while(it.current()){
TQWidget * c = it.current()->widget();