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