Qt Utilities 6.7.0
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
desktoputils.h
Go to the documentation of this file.
1#ifndef DESKTOP_UTILS_DESKTOPSERVICES_H
2#define DESKTOP_UTILS_DESKTOPSERVICES_H
3
4#include "../global.h"
5
6#include <QPalette>
7
8QT_FORWARD_DECLARE_CLASS(QString)
9
10namespace QtUtilities {
11
12QT_UTILITIES_EXPORT bool openLocalFileOrDir(const QString &path);
13QT_UTILITIES_EXPORT bool isPaletteDark(const QPalette &palette = QPalette());
14
15} // namespace QtUtilities
16
17#endif // DESKTOP_UTILS_DESKTOPSERVICES_H
#define QT_UTILITIES_EXPORT
Marks the symbol to be exported by the qtutilities library.
QT_UTILITIES_EXPORT bool isPaletteDark(const QPalette &palette=QPalette())
Returns whether palette is dark.
QT_UTILITIES_EXPORT bool openLocalFileOrDir(const QString &path)
Shows the specified file or directory using the default file browser.