~dpniel/+junk/sync_devel

« back to all changes in this revision

Viewing changes to qml/MessageListView/MessagesListView.qml

  • Committer: Boren Zhang
  • Date: 2015-03-12 06:40:48 UTC
  • mfrom: (326.1.1 devel)
  • Revision ID: bobo1993324@gmail.com-20150312064048-vbnltzmxmovvar49
Merged in DEK-84-filter-bar (pull request #12)

DEK-84 Implements filter bar component

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
   You should have received a copy of the GNU General Public License
16
16
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
17
*/
18
 
import QtQuick 2.3
 
18
import QtQuick 2.4
19
19
import Ubuntu.Components 1.1
20
20
import Ubuntu.Components.ListItems 1.0 as ListItem
21
21
import Ubuntu.Components.Popups 1.0
58
58
                _currentSwipedItem.resetSwipe()
59
59
                _currentSwipedItem = null
60
60
            }
61
 
            messageListPage.state = "edit"
62
 
        } else if (!isInSelectionMode) {
63
 
            messageListPage.state = "default"
 
61
            messageListPage.activateMultiSelectToolbar()
64
62
        }
65
63
    }
66
64
 
184
182
    //----------------------------------
185
183
    // OBJECT PROPERTIES
186
184
    //----------------------------------
 
185
    clip: true
 
186
//    header: FilterBar {
 
187
//        z: 10
 
188
//        anchors {
 
189
//            left: parent.left
 
190
//            right: parent.right
 
191
//        }
 
192
//        opacity: 1.0
 
193
//    }
 
194
    headerPositioning: ListView.OverlayHeader
 
195
 
187
196
    section.property: dekko.currentAccount.msgListModel.itemsValid ? "fuzzyDate" : ""
188
197
    section.delegate: sectionComponent
189
198
    section.labelPositioning: ViewSection.CurrentLabelAtStart | ViewSection.InlineLabels