diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-03-19 03:20:49 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-03-19 03:20:49 +0100 |
commit | d67d58e662159d53ee5fde37a6f60903f6350731 (patch) | |
tree | 926837b53c7bcd74e5ebe3163b02dd3792923a60 /gui/mainwindow.cpp | |
parent | 7e222c3e8f4d1c007edafc31e75e7712813dd64b (diff) | |
download | MultiMC-d67d58e662159d53ee5fde37a6f60903f6350731.tar MultiMC-d67d58e662159d53ee5fde37a6f60903f6350731.tar.gz MultiMC-d67d58e662159d53ee5fde37a6f60903f6350731.tar.lz MultiMC-d67d58e662159d53ee5fde37a6f60903f6350731.tar.xz MultiMC-d67d58e662159d53ee5fde37a6f60903f6350731.zip |
Added background cat. Proof of concept :3
Diffstat (limited to 'gui/mainwindow.cpp')
-rw-r--r-- | gui/mainwindow.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index b799bdcf..a96d80a7 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -66,7 +66,22 @@ 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\ + {\ + background-image: url(:/backgrounds/kitteh);\ + background-attachment: fixed;\ + background-clip: padding;\ + background-position: top right;\ + background-repeat: none;\ + background-color:palette(base);\ + }"); + view->setSelectionMode ( QAbstractItemView::SingleSelection ); //view->setSpacing( KDialog::spacingHint() ); view->setCategoryDrawer ( drawer ); |