Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
DockTitleBar.h
Go to the documentation of this file.
1#pragma once
2#include <QDockWidget>
3#include <QHBoxLayout>
4#include <QLabel>
5#include <misc/global.h>
6
7namespace sf
8{
9
15class _MISC_CLASS DockTitleBar : public QFrame
16{
17 Q_OBJECT
18
19 public:
23 explicit DockTitleBar(QDockWidget* parent);
24
28 ~DockTitleBar() override;
29
33 void setTitle(const QString& title);
34
38 QString title() const;
39
40 private:
41 struct Private;
42 Private* _p;
43};
44
45}// namespace sf
Custom title bar widget for a QDockWidget instance. Provides a title, dock/undock button,...
Definition DockTitleBar.h:16
void setTitle(const QString &title)
Sets the title text.
QString title() const
Gets the title.
DockTitleBar(QDockWidget *parent)
Qt constructor.
~DockTitleBar() override
Overridden destructor.
#define _MISC_CLASS
Definition misc/global.h:40
Definition Application.h:10