1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 18:18:10 +00:00
transmission/qt/StyleHelper.cc
Mike Gelfand 82df3a87f4 Update to Uncrustify 0.68.1
Tweak a few rules in the process. Now all code in cli, daemon, gtk,
libtransmission, qt, and utils is properly formatted with no manual
intervention.
2019-02-15 09:21:48 +03:00

24 lines
464 B
C++

/*
* This file Copyright (C) 2017 Mnemosyne LLC
*
* It may be used under the GNU GPL versions 2 or 3
* or any future license endorsed by Mnemosyne LLC.
*
*/
#include "StyleHelper.h"
QIcon::Mode StyleHelper::getIconMode(QStyle::State state)
{
if (!state.testFlag(QStyle::State_Enabled))
{
return QIcon::Disabled;
}
if (state.testFlag(QStyle::State_Selected))
{
return QIcon::Selected;
}
return QIcon::Normal;
}