mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
28 lines
648 B
C++
28 lines
648 B
C++
/*
|
|
* This file Copyright (C) 2009-2014 Mnemosyne LLC
|
|
*
|
|
* It may be used under the GNU GPL versions 2 or 3
|
|
* or any future license endorsed by Mnemosyne LLC.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#include <QStyleOption>
|
|
#include <QStyleOptionToolButton>
|
|
#include <QStylePainter>
|
|
|
|
#include "tricontoolbutton.h"
|
|
|
|
TrIconToolButton::TrIconToolButton (QWidget * parent):
|
|
QToolButton (parent)
|
|
{
|
|
}
|
|
|
|
void TrIconToolButton::paintEvent (QPaintEvent * /*event*/)
|
|
{
|
|
QStylePainter painter(this);
|
|
QStyleOptionToolButton option;
|
|
initStyleOption (&option);
|
|
option.features &= ~QStyleOptionToolButton::HasMenu;
|
|
painter.drawComplexControl(QStyle::CC_ToolButton, option);
|
|
}
|