mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
two "comics views" added, classic (flow+table_view) and grid (based on qml/qtquick) TODO: the views are only interchangeable in compilation time, some more work is needed for doing it in run time. fixed reloadCovers
30 lines
610 B
C++
30 lines
610 B
C++
#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;
|
|
}
|