mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-16 05:35:43 +08:00
41 lines
840 B
Plaintext
41 lines
840 B
Plaintext
|
%Import QtWidgets/QtWidgetsmod.sip
|
||
|
|
||
|
%If (Qt_5_0_0 -)
|
||
|
|
||
|
namespace ads
|
||
|
{
|
||
|
|
||
|
class CElidingLabel : QLabel
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <ElidingLabel.h>
|
||
|
%End
|
||
|
|
||
|
protected:
|
||
|
virtual void mouseReleaseEvent(QMouseEvent* event);
|
||
|
virtual void resizeEvent( QResizeEvent *event );
|
||
|
virtual void mouseDoubleClickEvent( QMouseEvent *ev );
|
||
|
|
||
|
public:
|
||
|
CElidingLabel(QWidget* parent /TransferThis/ = 0, Qt::WindowFlags f = 0);
|
||
|
CElidingLabel(const QString& text, QWidget* parent /TransferThis/ = 0, Qt::WindowFlags f = 0);
|
||
|
virtual ~CElidingLabel();
|
||
|
Qt::TextElideMode elideMode() const;
|
||
|
void setElideMode(Qt::TextElideMode mode);
|
||
|
|
||
|
|
||
|
public:
|
||
|
virtual QSize minimumSizeHint() const;
|
||
|
virtual QSize sizeHint() const;
|
||
|
void setText(const QString &text);
|
||
|
QString text() const;
|
||
|
|
||
|
signals:
|
||
|
void clicked();
|
||
|
void doubleClicked();
|
||
|
};
|
||
|
|
||
|
};
|
||
|
|
||
|
%End
|