mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
|
|
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
|
|
|
//! \file
|
|
|
|
#ifndef SWIFT_GUI_DOCKWIDGETINFOBAR_H
|
|
#define SWIFT_GUI_DOCKWIDGETINFOBAR_H
|
|
|
|
#include "gui/swiftguiexport.h"
|
|
#include "gui/dockwidget.h"
|
|
|
|
#include <QObject>
|
|
|
|
class QMenu;
|
|
|
|
namespace swift::gui
|
|
{
|
|
//! Class for dock widgets in the info area, containing some specialized functionality
|
|
//! \sa CDockWidgetInfoArea
|
|
//! \sa CInfoArea
|
|
class SWIFT_GUI_EXPORT CDockWidgetInfoBar : public CDockWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
//! Constructor
|
|
explicit CDockWidgetInfoBar(QWidget *parent = nullptr);
|
|
|
|
//! Force an reload
|
|
void reloadStyleSheet() { this->onStyleSheetsChanged(); }
|
|
|
|
//! \copydoc CDockWidget::initialFloating
|
|
//! \remark special case to allow init
|
|
virtual void initialFloating() override { CDockWidget::initialFloating(); }
|
|
|
|
protected:
|
|
//! Contribute to menu
|
|
virtual void addToContextMenu(QMenu *contextMenu) const override;
|
|
|
|
protected:
|
|
//! \copydoc CDockWidget::onStyleSheetsChanged
|
|
virtual void onStyleSheetsChanged() override;
|
|
};
|
|
} // namespace
|
|
|
|
#endif // guard
|