mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
20 lines
411 B
C++
20 lines
411 B
C++
#include "style.h"
|
|
#include "settings.h"
|
|
|
|
#include <QFile>
|
|
#include <QDebug>
|
|
|
|
QString Style::get(const QString &filename)
|
|
{
|
|
if (!Settings::getInstance().getUseNativeStyle())
|
|
{
|
|
QFile file(filename);
|
|
if (file.open(QFile::ReadOnly | QFile::Text))
|
|
return file.readAll();
|
|
else
|
|
qWarning() << "Style " << filename << " not found";
|
|
}
|
|
|
|
return QString();
|
|
}
|