mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-12 00:00:25 +08:00
Fixed pixmap warning in ElidingLabel
This commit is contained in:
parent
1abe101ef7
commit
2c0d899b2a
@ -163,8 +163,8 @@ void CElidingLabel::resizeEvent(QResizeEvent *event)
|
|||||||
//============================================================================
|
//============================================================================
|
||||||
QSize CElidingLabel::minimumSizeHint() const
|
QSize CElidingLabel::minimumSizeHint() const
|
||||||
{
|
{
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
|
||||||
bool HasPixmap = !pixmap().isNull();
|
bool HasPixmap = !pixmap(Qt::ReturnByValue).isNull();
|
||||||
#else
|
#else
|
||||||
bool HasPixmap = (pixmap() != nullptr);
|
bool HasPixmap = (pixmap() != nullptr);
|
||||||
#endif
|
#endif
|
||||||
@ -185,8 +185,8 @@ QSize CElidingLabel::minimumSizeHint() const
|
|||||||
//============================================================================
|
//============================================================================
|
||||||
QSize CElidingLabel::sizeHint() const
|
QSize CElidingLabel::sizeHint() const
|
||||||
{
|
{
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
|
||||||
bool HasPixmap = !pixmap().isNull();
|
bool HasPixmap = !pixmap(Qt::ReturnByValue).isNull();
|
||||||
#else
|
#else
|
||||||
bool HasPixmap = (pixmap() != nullptr);
|
bool HasPixmap = (pixmap() != nullptr);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user