Adds initial intermediate qt6 porting state
This commit is contained in:
11247 files changed
+1891537
No files matched your search
@@ -0,0 +1,39 @@
|
||||
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QTabBar>
|
||||
#include "lts_widgets_export.h"
|
||||
|
||||
namespace LtsWidgets
|
||||
{
|
||||
|
||||
|
||||
|
||||
class LTSWIDGETS_EXPORT LtsTabBar : public QTabBar
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(bool secondary MEMBER m_secondary)
|
||||
|
||||
public:
|
||||
|
||||
|
||||
explicit LtsTabBar(bool isSecondary = false, QWidget *parent = nullptr);
|
||||
|
||||
|
||||
|
||||
void _internal_closeTab();
|
||||
|
||||
protected:
|
||||
void onCustomContextMenuRequested(const QPoint pos);
|
||||
void onSaveCurrentWidgetAsImage(const QPoint pos);
|
||||
private:
|
||||
bool m_secondary;
|
||||
|
||||
public slots:
|
||||
void updateCloseButtonColors(int newIndex = -1);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user