Linux: install docs in a more packaging-friendly way

Linux: Add initial support for manpages
This commit is contained in:
Felix Kauselmann
2014-08-18 00:35:26 +02:00
commit 197660b46e
754 changed files with 70825 additions and 0 deletions

View 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);
}