Added cool icon to promoe.

This commit is contained in:
Tobias Rundstrom 2006-02-27 19:30:36 -03:00
parent fa4fc01a31
commit 19cafc34e1
6 changed files with 24 additions and 1 deletions

View file

@ -2,11 +2,15 @@
#include "MainWindow.h"
#include <QSettings>
#include <QIcon>
MainWindow::MainWindow (QWidget *parent) : QMainWindow (parent)
{
setWindowFlags(Qt::FramelessWindowHint);
setGeometry(100, 100, 275, 116);
#ifndef _WIN32
setWindowIcon (QIcon (":icon.png"));
#endif
/*
* The MainDisplay is the mainwindow non-shaded mode

View file

@ -4,6 +4,7 @@
#include <QMouseEvent>
#include <QPaintEvent>
#include <QRect>
#include <QIcon>
PlaylistScrollButton::PlaylistScrollButton (PlaylistScroller *parent, uint normal, uint pressed) : Button (parent, normal, pressed, true)
{
@ -79,6 +80,10 @@ PlaylistWindow::PlaylistWindow (QWidget *parent) : QMainWindow (parent)
{
Skin *skin = Skin::getInstance ();
#ifndef _WIN32
setWindowIcon (QIcon (":icon.png"));
#endif
setWindowFlags (Qt::FramelessWindowHint);
connect (skin, SIGNAL (skinChanged (Skin *)),
this, SLOT (setPixmaps(Skin *)));

View file

@ -3,11 +3,17 @@
#include "SkinChooser.h"
#include <QDir>
#include <QIcon>
#include <QFile>
#include <QSettings>
SkinChooser::SkinChooser (QWidget *parent) : QMainWindow (parent)
{
#ifndef _WIN32
setWindowIcon (QIcon (":icon.png"));
#endif
m_mw = dynamic_cast<MainWindow *>(parent);
QWidget *c = new QWidget (this);
setCentralWidget (c);

BIN
icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 B

View file

@ -38,7 +38,10 @@ HEADERS += XmmsQT4.h \
PlaylistList.h \
SkinChooser.h
RESOURCES = promoe.qrc
CONFIG += link_pkgconfig
CONFIG += debug warn_on
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-parameter
PKGCONFIG += xmms2-client xmms2-client-cpp sigc++-2.0

5
promoe.qrc Normal file
View file

@ -0,0 +1,5 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>icon.png</file>
</qresource>
</RCC>