[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/multimedia/amarok/src/playlist
From: Teo Mrnjavac <teo.mrnjavac () gmail ! com>
Date: 2009-07-02 4:29:01
Message-ID: 1246508941.767553.25648.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 990243 by mrnjavac:
Use QToolButton instead of KPushButton, looks a bit nicer because Oxygen \
unfortunately ignores KPushButton::setFlat().
M +7 -5 PlaylistSortWidget.cpp
M +1 -1 PlaylistSortWidget.h
--- trunk/extragear/multimedia/amarok/src/playlist/PlaylistSortWidget.cpp \
#990242:990243 @@ -1,5 +1,5 @@
/****************************************************************************************
- * Copyright (c) 2009 Teo Mrnjavac <teo.mrnjavac@gmail.com> \
* + * Copyright © 2009 Teo Mrnjavac <teo.mrnjavac@gmail.com> \
*
* \
*
* This program is free software; you can redistribute it and/or modify it under \
*
* the terms of the GNU General Public License as published by the Free Software \
* @@ -18,6 +18,8 @@
#include "Debug.h"
+#include <QToolButton>
+
namespace Playlist
{
@@ -49,17 +51,17 @@
++i;
}
- KPushButton *btnPushLevel = new KPushButton( KIcon( "list-add" ), "", this );
+ QToolButton *btnPushLevel = new QToolButton( this );
+ btnPushLevel->setIcon( KIcon( "list-add" ) );
mainLayout->addWidget( btnPushLevel );
btnPushLevel->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Preferred );
btnPushLevel->resize( btnPushLevel->height(), btnPushLevel->height() );
- btnPushLevel->setFlat( true );
- KPushButton *btnPopLevel = new KPushButton( KIcon( "edit-delete" ), "", this );
+ QToolButton *btnPopLevel = new QToolButton( this );
+ btnPopLevel->setIcon( KIcon( "edit-delete" ) );
mainLayout->addWidget( btnPopLevel );
btnPopLevel->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Preferred );
btnPopLevel->resize( btnPopLevel->height(), btnPopLevel->height() );
- btnPopLevel->setFlat( true );
mainLayout->addStretch();
m_btnSort = new KPushButton( "Just sort it!", this );
--- trunk/extragear/multimedia/amarok/src/playlist/PlaylistSortWidget.h \
#990242:990243 @@ -1,5 +1,5 @@
/****************************************************************************************
- * Copyright (c) 2009 Teo Mrnjavac <teo.mrnjavac@gmail.com> \
* + * Copyright © 2009 Teo Mrnjavac <teo.mrnjavac@gmail.com> \
*
* \
*
* This program is free software; you can redistribute it and/or modify it under \
*
* the terms of the GNU General Public License as published by the Free Software \
*
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic