mirror of
https://github.com/zealdocs/zeal.git
synced 2024-12-02 09:44:14 +03:00
No need in typedef struct in C++
This commit is contained in:
parent
1d147b6c57
commit
1f49e16295
@ -30,9 +30,8 @@ extern const QString serverName;
|
|||||||
|
|
||||||
// Represents per tab search state.
|
// Represents per tab search state.
|
||||||
// needs to contain [search input, search model, section model, url]
|
// needs to contain [search input, search model, section model, url]
|
||||||
typedef struct SearchState
|
struct SearchState
|
||||||
{
|
{
|
||||||
public:
|
|
||||||
QWebPage *page;
|
QWebPage *page;
|
||||||
// model representing sections
|
// model representing sections
|
||||||
ZealSearchModel sectionsList;
|
ZealSearchModel sectionsList;
|
||||||
@ -48,7 +47,7 @@ public:
|
|||||||
|
|
||||||
int scrollPosition;
|
int scrollPosition;
|
||||||
int sectionsScroll;
|
int sectionsScroll;
|
||||||
} SearchState;
|
};
|
||||||
|
|
||||||
class MainWindow : public QMainWindow
|
class MainWindow : public QMainWindow
|
||||||
{
|
{
|
||||||
|
@ -21,7 +21,7 @@ class ZealDocsetsRegistry : public QObject
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
typedef struct {
|
struct docsetEntry {
|
||||||
QString name;
|
QString name;
|
||||||
QString prefix;
|
QString prefix;
|
||||||
QSqlDatabase db;
|
QSqlDatabase db;
|
||||||
@ -29,7 +29,7 @@ public:
|
|||||||
DocSetType type;
|
DocSetType type;
|
||||||
ZealDocsetMetadata metadata;
|
ZealDocsetMetadata metadata;
|
||||||
ZealDocsetInfo info;
|
ZealDocsetInfo info;
|
||||||
} docsetEntry;
|
};
|
||||||
|
|
||||||
static ZealDocsetsRegistry* instance()
|
static ZealDocsetsRegistry* instance()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user