File tree Expand file tree Collapse file tree 13 files changed +15
-15
lines changed
Qt.Widgets/CommonControls Expand file tree Collapse file tree 13 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ add_subdirectory(Label)
1212add_subdirectory (LCDNumber)
1313add_subdirectory (LineEdit)
1414add_subdirectory (ListView)
15+ add_subdirectory (ListView2)
1516add_subdirectory (ListWidget)
1617add_subdirectory (PictureBox)
1718add_subdirectory (PictureBox2)
@@ -23,5 +24,4 @@ add_subdirectory(SpinBox)
2324add_subdirectory (SpinButton)
2425add_subdirectory (ToggleButton)
2526add_subdirectory (TreeView)
26- add_subdirectory (TreeView2)
2727add_subdirectory (Widget)
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ SUBDIRS = \
77 LCDNumber \
88 LineEdit \
99 ListView \
10+ ListView2 \
1011 ListWidget \
1112 PictureBox \
1213 PictureBox2 \
@@ -18,5 +19,4 @@ SUBDIRS = \
1819 SpinButton \
1920 ToggleButton \
2021 TreeView \
21- TreeView2 \
2222 Widget \
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ namespace Examples {
4141 QFrame frame;
4242 QVBoxLayout layout {&frame};
4343 QListView listView1;
44- QStandardItemModel model;;
44+ QStandardItemModel model;
4545 QComboBox comboBoxMode;
4646 };
4747}
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.1)
22
33# Project
4- project (TreeView2 )
4+ project (ListView2 )
55find_package (Qt5Widgets CONFIG REQUIRED)
66
77# Options
@@ -12,5 +12,5 @@ set(CMAKE_CXX_STANDARD 17)
1212set (CMAKE_CXX_STANDARD_REQUIRED ON )
1313
1414# Application
15- add_executable (TreeView2 WIN32 MACOSX_BUNDLE src/TreeView2 .cpp src/TreeView2 .h)
16- target_link_libraries (TreeView2 Qt5::Widgets)
15+ add_executable (ListView2 WIN32 MACOSX_BUNDLE src/ListView2 .cpp src/ListView2 .h)
16+ target_link_libraries (ListView2 Qt5::Widgets)
Original file line number Diff line number Diff line change 1+ CONFIG += c++17
2+ QT = widgets
3+ SOURCES = src/ListView2.cpp
4+ HEADERS = src/ListView2.h
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 11#include < QApplication>
2- #include " TreeView2 .h"
2+ #include " ListView2 .h"
33
44using namespace Examples ;
55
Original file line number Diff line number Diff line change @@ -40,6 +40,6 @@ namespace Examples {
4040 QFrame frame;
4141 QVBoxLayout layout {&frame};
4242 QTreeView treeView1;
43- QStandardItemModel model;;
43+ QStandardItemModel model;
4444 };
4545}
You can’t perform that action at this time.
0 commit comments