1
0
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:
Christian Muehlhaeuser
2012-12-16 13:03:26 +01:00
parent 4260e3664d
commit c8a3ef0732
2 changed files with 8 additions and 0 deletions

View File

@@ -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);

View File

@@ -19,6 +19,7 @@ public:
void setCaption(const QString &caption);
void setDescription(const QString &description);
QSize minimumSizeHint() const;
QSize sizeHint() const;
signals: