mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 07:07:05 +02:00
* Imported QML resources.
This commit is contained in:
committed by
Michael Zanetti
parent
09c272a07c
commit
17eeae9a8f
21
data/qml/DeclarativeHeader.qml
Normal file
21
data/qml/DeclarativeHeader.qml
Normal file
@@ -0,0 +1,21 @@
|
||||
import QtQuick 1.1
|
||||
import tomahawk 1.0
|
||||
import "tomahawkimports"
|
||||
|
||||
// Only to be used together with DeclarativeHeader C++ class
|
||||
// If you want to use the header in QML, use FlexibleHeader
|
||||
|
||||
Item {
|
||||
anchors.fill: parent
|
||||
|
||||
FlexibleHeader {
|
||||
anchors.fill: parent
|
||||
icon: iconSource
|
||||
title: caption
|
||||
subtitle: description
|
||||
buttonModel: buttonList
|
||||
|
||||
onSearchTextChanged: mainView.setFilterText(searchText)
|
||||
onCurrentButtonIndexChanged: mainView.viewModeSelected(currentButtonIndex)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user