RabbitCommon v2.3.3
Loading...
Searching...
No Matches
Information.h
1// Copyright Copyright (c) Kang Lin studio, All Rights Reserved
2// Author Kang Lin <kl222@126.com>
3
4#ifndef INFORMATION_H
5#define INFORMATION_H
6
7#include <QDialog>
8#include <QLibraryInfo>
9
10namespace Ui {
11class CInformation;
12}
13
14class CInformation : public QDialog
15{
16 Q_OBJECT
17
18public:
19 explicit CInformation(const QString &szApp,
20 const QString &szInfo,
21 QWidget *parent = nullptr);
22 virtual ~CInformation();
23
24private:
25 Ui::CInformation *ui;
26
27 void SetContext(const QString& szTitle, const QString& szContext);
28 QString GetLibrariesLocation();
29#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
30 QString GetLibrariesLocation(QLibraryInfo::LibraryLocation path);
31#else
32 QString GetLibrariesLocation(QLibraryInfo::LibraryPath path);
33#endif
34};
35
36#endif // INFORMATION_H