|
%!s(int64=9) %!d(string=hai) anos | |
---|---|---|
.. | ||
data | %!s(int64=16) %!d(string=hai) anos | |
icons | %!s(int64=16) %!d(string=hai) anos | |
CMakeLists.txt | %!s(int64=14) %!d(string=hai) anos | |
CsvUtil.C | %!s(int64=9) %!d(string=hai) anos | |
CsvUtil.h | %!s(int64=11) %!d(string=hai) anos | |
FolderView.C | %!s(int64=14) %!d(string=hai) anos | |
FolderView.h | %!s(int64=16) %!d(string=hai) anos | |
README.md | %!s(int64=13) %!d(string=hai) anos | |
TreeViewDragDrop.C | %!s(int64=10) %!d(string=hai) anos | |
about.xml | %!s(int64=15) %!d(string=hai) anos | |
styles.css | %!s(int64=14) %!d(string=hai) anos |
The example shows a typical full-window application with a tree (a
WTreeView
) that represents different 'folders', and a table (a
WTableView
) which represents 'documents' that belong to this
office. The size of these documents is shown in a pie chart
(a WPieChart
).
Two data models (WStandardItemModel
) back these views: one for the
folders, and one for the files.
Drag & Drop is configured so that files can be selected and dragged into a different folder. Changes to the model are automatically reflected in the relevant views.
See the README in the parent directory.
WPopupMenu