Ignore:
Timestamp:
01/12/10 09:15:42 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
72f6fe4
Parents:
5034a83
Message:

modified model-view

  • created own delegate to display TreeView? items
    • contains also 'controls' - which are clickable (handled in TreeView?)
  • created own TreeView? inherited from QTreeView
    • to handle control-clicks of the Delegate
  • minor modifications to MainWindow? UI
  • icons added
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    r5034a83 r66327a0  
    55
    66#include <eventmodel.h>
     7#include <delegate.h>
    78
    89MainWindow::MainWindow(QWidget *parent)
     
    1617    setupUi(this);
    1718    //TODO Palo: continue
    18     //treeView->setModel(new QDirModel);
     19    treeView->setHeaderHidden(true);
     20    treeView->setRootIsDecorated(false);
     21    treeView->setIndentation(0);
     22    treeView->setAnimated(true);
    1923    treeView->setModel(new EventModel());
     24    treeView->setItemDelegate(new Delegate(treeView));
    2025}
     26
Note: See TracChangeset for help on using the changeset viewer.