added retina icons for YACReader

This commit is contained in:
Luis Ángel San Martín
2014-11-08 17:53:01 +01:00
commit 2a55e71893
897 changed files with 79427 additions and 0 deletions

View File

@ -0,0 +1,29 @@
#include "yacreader_global.h"
#include <QAction>
using namespace YACReader;
QString YACReader::getSettingsPath()
{
#if QT_VERSION >= 0x050000
return QStandardPaths::writableLocation(QStandardPaths::DataLocation);
#else
return QDesktopServices::storageLocation(QDesktopServices::DataLocation);
#endif
}
void YACReader::addSperator(QWidget *w)
{
QAction * separator = new QAction(w);
separator->setSeparator(true);
w->addAction(separator);
}
QAction * YACReader::createSeparator()
{
QAction * a = new QAction(0);
a->setSeparator(true);
return a;
}