You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWATI/Include/iBase/iPlugin/ZxDockWidget.h

48 lines
1.1 KiB
C

#pragma once
#include <QDockWidget>
#include <QMouseEvent>
#include <QThread>
#include <QAction>
#include "iPlugin_global.h"
// DockWidget扩展
class I_PLUGIN_EXPORT ZxDockWidget : public QDockWidget
{
Q_OBJECT
public:
ZxDockWidget(const QString &title, QWidget *parent = 0, Qt::WindowFlags flags = 0);
ZxDockWidget(QWidget *parent = 0, Qt::WindowFlags flags = 0);
~ZxDockWidget();
bool IsWindowOpacity(void);
void WindowOpacity(bool bOpacity);
void changeTitle(bool bTopLevel);
public slots:
void slotFeaturesChanged(QDockWidget::DockWidgetFeatures features);
void slotTopLevelChanged(bool topLevel);
void slotAllowedAreasChanged(Qt::DockWidgetAreas allowedAreas);
void slotVisibilityChanged(bool visible);
void slotDockLocationChanged(Qt::DockWidgetArea area);
protected:
virtual void leaveEvent(QEvent * event);
virtual void enterEvent(QEvent * event);
virtual bool event(QEvent *event);
void paintEvent(QPaintEvent *event);
void init();
protected:
bool m_bIsWindowOpacity;
QString m_sTitle;
};