mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-09-01 01:51:58 +02:00
* Overwrite minimumSizeHint in DeclarativeHeader.
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
#include "DeclarativeHeader.h"
|
#include "DeclarativeHeader.h"
|
||||||
|
|
||||||
#include "utils/TomahawkUtilsGui.h"
|
#include "utils/TomahawkUtilsGui.h"
|
||||||
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
#include <QDeclarativeContext>
|
#include <QDeclarativeContext>
|
||||||
|
|
||||||
@@ -46,6 +48,11 @@ QSize DeclarativeHeader::sizeHint() const
|
|||||||
return QSize(0, TomahawkUtils::defaultFontHeight() * 4);
|
return QSize(0, TomahawkUtils::defaultFontHeight() * 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QSize DeclarativeHeader::minimumSizeHint() const
|
||||||
|
{
|
||||||
|
return sizeHint();
|
||||||
|
}
|
||||||
|
|
||||||
void DeclarativeHeader::viewModeSelected(int viewMode)
|
void DeclarativeHeader::viewModeSelected(int viewMode)
|
||||||
{
|
{
|
||||||
emit viewModeChanged((TomahawkUtils::ViewMode)viewMode);
|
emit viewModeChanged((TomahawkUtils::ViewMode)viewMode);
|
||||||
|
@@ -19,6 +19,7 @@ public:
|
|||||||
void setCaption(const QString &caption);
|
void setCaption(const QString &caption);
|
||||||
void setDescription(const QString &description);
|
void setDescription(const QString &description);
|
||||||
|
|
||||||
|
QSize minimumSizeHint() const;
|
||||||
QSize sizeHint() const;
|
QSize sizeHint() const;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
Reference in New Issue
Block a user