[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeplasma-addons/applets/weather
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2010-05-05 1:30:50
Message-ID: 20100505013050.DA252AC8AB () svn ! kde ! org
[Download RAW message or body]

SVN commit 1122909 by aseigo:

today's weather widget code removal service: one less layout


 M  +2 -5      weatherapplet.cpp  
 M  +0 -1      weatherapplet.h  


--- trunk/KDE/kdeplasma-addons/applets/weather/weatherapplet.cpp #1122908:1122909
@@ -137,7 +137,6 @@
 
     m_titlePanel->setHorizontalSpacing(0);
     m_titlePanel->setVerticalSpacing(0);
-    m_bottomLayout = new QGraphicsLinearLayout(Qt::Horizontal);
 
     m_locationLabel->nativeWidget()->setAlignment(Qt::AlignLeft | Qt::AlignAbsolute);
     m_titleFont = QApplication::font();
@@ -299,7 +298,7 @@
     }
 
     setVisible(val, m_titlePanel);
-    setVisible(val, m_bottomLayout);
+    m_tabBar->setVisible(val);
 
     m_courtesyLabel->setVisible(val);
 }
@@ -710,9 +709,7 @@
     }
 
     if (!m_setupLayout) {
-        m_bottomLayout->addItem(m_tabBar);
-        m_bottomLayout->setStretchFactor(m_tabBar, 2);
-        m_layout->addItem(m_bottomLayout);
+        m_layout->addItem(m_tabBar);
         m_layout->addItem(m_courtesyLabel);
         m_setupLayout = 1;
     }
--- trunk/KDE/kdeplasma-addons/applets/weather/weatherapplet.h #1122908:1122909
@@ -88,7 +88,6 @@
     int m_setupLayout;
     QGraphicsLinearLayout *m_layout;
     QGraphicsGridLayout *m_titlePanel;
-    QGraphicsLinearLayout *m_bottomLayout;
     BackgroundWidget *m_graphicsWidget;
 
     Plasma::Frame *m_titleFrame;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic