diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2010-12-29 02:55:36 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:08:57 +0300 |
commit | 06deb7a6b76d600bc9c960652417993b9e589ad5 (patch) | |
tree | 4138e6a25b0576f23b232617add57288a3f3c5e0 /qt/update_dialog.hpp | |
parent | 0ac036f21605040627fea31dc69d9001694b8a2e (diff) |
Refactored storage engine
Diffstat (limited to 'qt/update_dialog.hpp')
-rw-r--r-- | qt/update_dialog.hpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/qt/update_dialog.hpp b/qt/update_dialog.hpp index dfdc2244a5..7dcf2bff85 100644 --- a/qt/update_dialog.hpp +++ b/qt/update_dialog.hpp @@ -4,7 +4,8 @@ #include <QtGui/QDialog> -class QTableWidget; +class QTreeWidget; +class QTreeWidgetItem; class QLabel; namespace qt @@ -17,7 +18,7 @@ namespace qt UpdateDialog(QWidget * parent, storage::Storage & storage); ~UpdateDialog(); - /// @name Called from storage to notify GUI + /// @name Called from downloader to notify GUI //@{ void OnCountryChanged(storage::TIndex const & index); void OnCountryDownloadProgress(storage::TIndex const & index, @@ -25,14 +26,14 @@ namespace qt //@} private slots: - void OnTableClick(int row, int column); + void OnItemClick(QTreeWidgetItem * item, int column); private: - void FillTable(); + void FillTree(); void UpdateRowWithCountryInfo(storage::TIndex const & index); private: - QTableWidget * m_table; + QTreeWidget * m_tree; storage::Storage & m_storage; }; } // namespace qt |