25 lines
492 B
C++
25 lines
492 B
C++
#ifndef CONFIGTOOLBAR_H
|
|
#define CONFIGTOOLBAR_H
|
|
|
|
#include "enhancedToolBar.h"
|
|
#include "toolBarConfig.h"
|
|
|
|
class ConfigToolBar : public EnhancedToolBar
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ConfigToolBar(const QString &title, QWidget *parent = nullptr);
|
|
explicit ConfigToolBar(QWidget *parent = nullptr);
|
|
|
|
// 从配置加载工具
|
|
bool loadToolsFromConfig(const QString &configFile);
|
|
|
|
private:
|
|
void loadDefaultTools();
|
|
|
|
ToolBarConfig m_config;
|
|
};
|
|
|
|
#endif // CONFIGTOOLBAR_H
|