mirror of
https://github.com/YACReader/yacreader
synced 2025-07-23 15:35:03 -04:00
Linux: install docs in a more packaging-friendly way
Linux: Add initial support for manpages
This commit is contained in:
21
common/yacreader_global.cpp
Normal file
21
common/yacreader_global.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
#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);
|
||||
}
|
Reference in New Issue
Block a user