Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 258758 | Differences between
and this patch

Collapse All | Expand All

(-)applets/lancelot/libs/lancelot/Global.cpp~ (+5 lines)
Lines 326-333 Link Here
326
326
327
    d->confMain = new KConfig("lancelot" + app + "rc");
327
    d->confMain = new KConfig("lancelot" + app + "rc");
328
328
329
    Plasma::Theme::defaultTheme()->setUseGlobalSettings(true);
330
    qDebug() << "What is the plasma theme: " << Plasma::Theme::defaultTheme()->themeName();
329
    QString search = "desktoptheme/" + Plasma::Theme::defaultTheme()->themeName() + "/lancelot/" + app + "theme.config";
331
    QString search = "desktoptheme/" + Plasma::Theme::defaultTheme()->themeName() + "/lancelot/" + app + "theme.config";
330
    kDebug() << search;
332
    kDebug() << search;
333
    qDebug() << "Trying:" << search;
331
334
332
    QString path =  KStandardDirs::locate( "data", search );
335
    QString path =  KStandardDirs::locate( "data", search );
333
    if (path == "") {
336
    if (path == "") {
Lines 338-343 Link Here
338
        path = "lancelotrc";
341
        path = "lancelotrc";
339
    }
342
    }
340
    kDebug() << path;
343
    kDebug() << path;
344
    
345
    qDebug() << "Using theme:" << path;
341
    d->confTheme = new KConfig(path);
346
    d->confTheme = new KConfig(path);
342
347
343
    Instance::Private::activeInstance = this;
348
    Instance::Private::activeInstance = this;
(-)applets/lancelot/libs/lancelot/widgets/PassagewayView.cpp~ (-1 / +17 lines)
Lines 20-25 Link Here
20
#include "PassagewayView.h"
20
#include "PassagewayView.h"
21
21
22
#include <QWidget>
22
#include <QWidget>
23
#include <QGraphicsSceneMouseEvent>
24
#include <QGraphicsView>
25
#include <QApplication>
26
#include <climits>
27
23
28
24
namespace Lancelot {
29
namespace Lancelot {
25
30
Lines 65-70 Link Here
65
      : layout(NULL), buttonsLayout(NULL), listsLayout(NULL), parent(p), focusIndex(0)
70
      : layout(NULL), buttonsLayout(NULL), listsLayout(NULL), parent(p), focusIndex(0)
66
    {
71
    {
67
        parent->setLayout(layout = new NodeLayout());
72
        parent->setLayout(layout = new NodeLayout());
73
        layout->setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding));
74
        layout->setMaximumSize(INT_MAX, INT_MAX);        
68
75
69
        layout->addItem(
76
        layout->addItem(
70
            buttonsLayout = new QGraphicsLinearLayout(Qt::Horizontal),
77
            buttonsLayout = new QGraphicsLinearLayout(Qt::Horizontal),
Lines 72-77 Link Here
72
            NodeLayout::NodeCoordinate(1, 0, 0, 32)
79
            NodeLayout::NodeCoordinate(1, 0, 0, 32)
73
        );
80
        );
74
81
82
        buttonsLayout->setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding));
83
        buttonsLayout->setMaximumSize(INT_MAX, INT_MAX);
84
        
75
        ExtenderButton * spacer =
85
        ExtenderButton * spacer =
76
            new ExtenderButton(parent);
86
            new ExtenderButton(parent);
77
        spacer->setGroupByName("PassagewayView-Spacer");
87
        spacer->setGroupByName("PassagewayView-Spacer");
Lines 88-93 Link Here
88
98
89
        listsLayout->setSizer(new PassagewayViewSizer());
99
        listsLayout->setSizer(new PassagewayViewSizer());
90
100
101
        listsLayout->setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding));
102
        listsLayout->setMaximumSize(INT_MAX, INT_MAX);        
103
91
        buttonsLayout->setSpacing(0.0);
104
        buttonsLayout->setSpacing(0.0);
92
105
93
        next(Step("", QIcon(), entranceModel));
106
        next(Step("", QIcon(), entranceModel));
Lines 161-167 Link Here
161
            path.takeLast();
174
            path.takeLast();
162
175
163
            buttonsLayout->removeItem(button);
176
            buttonsLayout->removeItem(button);
164
            layout->activate();
177
178
            // This really shouldn't be needed :(
179
            buttonsLayout->setGeometry(buttonsLayout->geometry());
180
            
165
            listsLayout->pop();
181
            listsLayout->pop();
166
182
167
            button->deleteLater();
183
            button->deleteLater();

Return to bug 258758