1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 18:18:10 +00:00
transmission/qt/tricontoolbutton.cc

29 lines
648 B
C++
Raw Normal View History

/*
* 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);
}