Fix KDE includes problem

This commit is contained in:
Petr Mrázek
2013-08-04 12:21:51 +02:00
parent 0adf1828b0
commit 935ad6b02c
11 changed files with 23 additions and 36 deletions

View File

@ -1,7 +1,7 @@
#pragma once
#include <QAbstractListModel>
#include "kcategorizedsortfilterproxymodel.h"
#include "categorizedsortfilterproxymodel.h"
#include "lists/InstanceList.h"
#include <QIcon>

View File

@ -45,8 +45,8 @@
#include "gui/legacymodeditdialog.h"
#include "gui/instancesettings.h"
#include "kcategorizedview.h"
#include "kcategorydrawer.h"
#include "categorizedview.h"
#include "categorydrawer.h"
#include "lists/InstanceList.h"
#include "AppSettings.h"
@ -84,12 +84,6 @@ MainWindow::MainWindow ( QWidget *parent ) :
// Create the widget
view = new KCategorizedView ( ui->centralWidget );
drawer = new KCategoryDrawer ( view );
/*
QPalette pal = view->palette();
pal.setBrush(QPalette::Base, QBrush(QPixmap(QString::fromUtf8(":/backgrounds/kitteh"))));
view->setPalette(pal);
*/
view->setStyleSheet(
"QListView\
{\
@ -137,13 +131,8 @@ MainWindow::MainWindow ( QWidget *parent ) :
connect(view, SIGNAL(clicked(const QModelIndex &)),
this, SLOT(instanceChanged(const QModelIndex &)));
// Load the instances.
// Load the instances. FIXME: this is not the place I'd say.
instList.loadList();
// just a test
/*
instList.at(0)->setGroup("TEST GROUP");
instList.at(0)->setName("TEST ITEM");
*/
//FIXME: WTF
if (!MinecraftVersionList::getMainList().isLoaded())