aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/guiSQLiteStudio/common/dbcombobox.h
blob: 39814a65c3f5298526815538a89c4b6003dbd3d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef DBCOMBOBOX_H
#define DBCOMBOBOX_H

#include <QComboBox>

class QComboBox;
class DbListModel;
class Db;

class DbComboBox : public QComboBox
{
    public:
        explicit DbComboBox(QWidget* parent = nullptr);

        DbListModel* getModel() const;
        void setCurrentDb(Db* db);
        Db* currentDb() const;

    private:
        DbListModel* dbComboModel = nullptr;
};

#endif // DBCOMBOBOX_H