summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2021-06-19 10:22:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-06-19 15:58:40 +0900
commite081da2f1d812fc22f92a8f9c07d83fc02008392 (patch)
treeff1065c265992bd6c01c1f554a04d2812dea542a
parent120be495ce93ebee0f103eaafb9e7b89cf21b5fd (diff)
downloadtdenetwork-e081da2f1d812fc22f92a8f9c07d83fc02008392.tar.gz
tdenetwork-e081da2f1d812fc22f92a8f9c07d83fc02008392.zip
Fix enum mismatch
Using own enum Direction, not Qt::Orientation Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit 87477e6c2b80d474efb856b56672e85dfa380a82)
-rw-r--r--kopete/libkopete/ui/kopetelistviewitem.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kopete/libkopete/ui/kopetelistviewitem.cpp b/kopete/libkopete/ui/kopetelistviewitem.cpp
index 7af94cbf..94fbff0f 100644
--- a/kopete/libkopete/ui/kopetelistviewitem.cpp
+++ b/kopete/libkopete/ui/kopetelistviewitem.cpp
@@ -309,7 +309,7 @@ BoxComponent::~BoxComponent()
int BoxComponent::widthForHeight( int height )
{
- if ( d->direction !=Qt::Horizontal )
+ if ( d->direction != Horizontal )
{
int width = 0;
for ( uint n = 0; n < components(); ++n )
@@ -327,7 +327,7 @@ int BoxComponent::widthForHeight( int height )
int BoxComponent::heightForWidth( int width )
{
- if ( d->direction ==Qt::Horizontal )
+ if ( d->direction == Horizontal )
{
int height = 0;
for ( uint n = 0; n < components(); ++n )
@@ -349,7 +349,7 @@ void BoxComponent::calcMinSize()
for ( uint n = 0; n < components(); ++n )
{
Component *comp = component( n );
- if ( d->direction ==Qt::Horizontal )
+ if ( d->direction == Horizontal )
{
max = TQMAX( max, comp->minHeight() );
sum += comp->minWidth();
@@ -362,7 +362,7 @@ void BoxComponent::calcMinSize()
}
bool sizeChanged = false;
- if ( d->direction ==Qt::Horizontal )
+ if ( d->direction == Horizontal )
{
if ( setMinWidth( sum ) ) sizeChanged = true;
if ( setMinHeight( max ) ) sizeChanged = true;
@@ -383,7 +383,7 @@ void BoxComponent::layout( const TQRect &rect )
{
Component::layout( rect );
- bool horiz = (d->direction ==Qt::Horizontal);
+ bool horiz = (d->direction == Horizontal);
int fixedSize = 0;
for ( uint n = 0; n < components(); ++n )
{