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

List:       kde-commits
Subject:    kdesupport/kdewin-installer/gui
From:       Peter Kümmel <syntheticpp () yahoo ! com>
Date:       2008-03-24 13:51:46
Message-ID: 1206366706.908151.20246.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 789512 by kuemmel:

remove unused style

 M  +0 -2      gui.qrc  
 D             images/brown.png  
 D             images/gray.png  
 M  +0 -3      installerenginegui.cpp  
 M  +0 -28     main.cpp  
 M  +0 -42     packageselectorpage.cpp  


--- trunk/kdesupport/kdewin-installer/gui/gui.qrc #789511:789512
@@ -6,8 +6,6 @@
      <file>images/keepinstalled.xpm</file>
      <file>images/noinst.xpm</file>
      <file>images/update.xpm</file>
-     <file>images/gray.png</file>
-     <file>images/brown.png</file>
      <file>images/logo.png</file>
      <file>images/watermark.png</file>
      <file>images/banner.png</file>
--- trunk/kdesupport/kdewin-installer/gui/installerenginegui.cpp #789511:789512
@@ -28,9 +28,6 @@
 #include "downloader.h"
 #include "installwizard.h"
 
-#ifdef ENABLE_STYLE
-#define DISABLE_ICONS
-#endif
 
 //#include "downloader.h"
 #include "installer.h"
--- trunk/kdesupport/kdewin-installer/gui/main.cpp #789511:789512
@@ -38,34 +38,6 @@
     if (param.startsWith("file:") || param.startsWith("http:") || param.startsWith("ftp:"))
         InstallerEngine::defaultConfigURL = param;
 
-#ifdef ENABLE_STYLE
-    QApplication::setStyle(new QPlastiqueStyle);
-    QApplication::setPalette(QApplication::style()->standardPalette());
-
-    qApp->setStyleSheet(
-        "QDialog {"
-            "background: #afafaf;"
-            //"background: #2f2f2f;"
-            "color: white"
-        "}"
-        "QLabel#topLabel {"
-            "color: white;"
-            "font-size: 20px;"
-            "font-family: arial;"
-            //"background-color: #92847b;"
-            "background-image: url(:/images/brown.png);"
-        "}"
-        "QTreeView {"
-            "background-image: url(:/images/gray.png);"
-            "border: 2px solid gray;"
-            "selection-background-color: #92847b;"
-        "}"
-        "QHeadView {"
-            "background-color: #92847b;"
-        "}"
-        );
-#endif
-
     InstallWizard *wizard = new InstallWizard();
     int ret = wizard->exec();
     delete wizard;
--- trunk/kdesupport/kdewin-installer/gui/packageselectorpage.cpp #789511:789512
@@ -53,47 +53,6 @@
     setTitle(tr("Package Selection"));
     setSubTitle(tr("Please select the packages you would like to install."));
 
-#ifdef ENABLE_STYLE
-    QSplitter *splitter = new QSplitter(wizard);
-    splitter->setOrientation(Qt::Vertical);
-
-    leftTree  = new QTreeWidget;
-    //engine->setLeftTreeData(leftTree);
-
-    QHBoxLayout* hl = new QHBoxLayout;
-    hl->addWidget(leftTree);
-    hl->addStretch(2);
-    hl->setMargin(0);
-    leftTree->setMinimumWidth(300);
-    leftTree->setMinimumHeight(100);
-    leftTree->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Preferred);
-
-    QWidget* top = new QWidget;
-    top->setLayout(hl);
-
-    tree = new QTreeWidget;
-    //engine->setPageSelectorWidgetData(tree);
-
-    splitter->addWidget(top);
-    splitter->addWidget(tree);
-
-    QWidget *widget = splitter->widget(0);
-    QSizePolicy policy = widget->sizePolicy();
-    policy.setVerticalStretch(2);
-    widget->setSizePolicy(policy);
-
-    widget = splitter->widget(1);
-    policy = widget->sizePolicy();
-    policy.setVerticalStretch(5);
-    widget->setSizePolicy(policy);
-
-
-    QVBoxLayout *layout = new QVBoxLayout;
-    layout->addWidget(splitter);
-    setLayout(layout);
-
-#else
-
     QSplitter *splitter = new QSplitter(wizard());
     splitter->setOrientation(Qt::Horizontal);
 
@@ -152,7 +111,6 @@
     layout->setRowStretch(1,10);
     setLayout(layout);
     packageInfo->hide();
-#endif
 }
 
 void PackageSelectorPage::initializePage()
[prev in list] [next in list] [prev in thread] [next in thread] 

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