mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 07:31:33 +08:00
c90fb9413c
* (Python) WIP: attempt to update to 3.2.0 * (Python) MAINT: move demo.py to demo/ to avoid PyQtAds import issue * (Python) STY: remove trailing whitespace * (Python) Missing/incorrect /Transfer/ annotations * (Python) n-elie's fix for setup.py moc generation * (Python) FIX: Q_OS_LINUX is not defined by default with moc * (Python) FIX: split FloatingDockContainer.sip to be platform-specific %If (Platform) blocks around the class definition in FloatingDockContainer.sip did not seem to work. Co-authored-by: K Lauer <klauer@users.noreply.github.com>
42 lines
897 B
Plaintext
42 lines
897 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);
|
|
bool isElided() const;
|
|
|
|
public:
|
|
virtual QSize minimumSizeHint() const;
|
|
virtual QSize sizeHint() const;
|
|
void setText(const QString &text);
|
|
QString text() const;
|
|
|
|
signals:
|
|
void clicked();
|
|
void doubleClicked();
|
|
void elidedChanged(bool elided);
|
|
};
|
|
|
|
};
|
|
|
|
%End
|