forked from GLSL-Debugger/GLSL-Debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqt5_changes.txt
53 lines (52 loc) · 5.36 KB
/
qt5_changes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
- set ./CMakeCache.txt:USE_MESA:BOOL=ON, option(USE_MESA "Use mesa glsl compiler" ON)
- run these
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QWidget/QtWidgets\/QWidget/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QDialog/QtWidgets\/QDialog/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/Qt\/qfile.h/QtCore\/qfile.h/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QAbstractItemView/QtWidgets\/QAbstractItemView/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QScrollBar/QtWidgets\/QScrollBar/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QMessageBox/QtWidgets\/QMessageBox/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QSortFilterProxyModel/QtCore\/QSortFilterProxyModel/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QItemEditorCreatorBase/QtWidgets\/QItemEditorCreatorBase/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QCheckBox/QtWidgets\/QCheckBox/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QLabel/QtWidgets\/QLabel/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QRubberBand/QtWidgets\/QRubberBand/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QWorkspace/QtWidgets\/QMdiArea/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QScrollArea/QtWidgets\/QScrollArea/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QTableView/QtWidgets\/QTableView/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QTreeView/QtWidgets\/QTreeView/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QCompleter/QtWidgets\/QCompleter/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QDirModel/QtWidgets\/QDirModel/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QItemDelegate/QtWidgets\/QItemDelegate/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QFrame/QtWidgets\/QFrame/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QDoubleSpinBox/QtWidgets\/QDoubleSpinBox/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QPushButton/QtWidgets\/QPushButton/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QListWidget/QtWidgets\/QListWidget/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QWorkspace/QMdiArea/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QComboBox/QtWidgets\/QComboBox/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QComboBox/QtWidgets\/QComboBox/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QLineEdit/QtWidgets\/QLineEdit/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QSpinBox/QtWidgets\/QSpinBox/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QHeaderView/QtWidgets\/QHeaderView/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QApplication/QtWidgets\/QApplication/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QItemEditorFactory/QtWidgets\/QItemEditorFactory/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QVBoxLayout/QtWidgets\/QVBoxLayout/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/toAscii/toLatin1/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QSplitter/QtWidgets\/QSplitter/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QGridLayout/QtWidgets\/QGridLayout/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QFileDialog/QtWidgets\/QFileDialog/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QTabWidget/QtWidgets\/QTabWidget/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/QtGui\/QTabBar/QtWidgets\/QTabBar/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/setFilters/setNameFilters/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/fromAscii/fromLatin1/g'
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/selectedFilter/selectedNameFilter/g'
- reset(); --> beginResetModel(); endResetModel();
- activeWindow -> activeSubWindow
- https://www.qtcentre.org/threads/56034-how-to-get-the-type-of-the-QMdiSubWindow
#include <QtWidgets/qmdisubwindow.h>
QMdiSubWindow *sw = m_pWorkspace->activeSubWindow();
QObject* swo = qobject_cast<QObject*>(sw->widget()));
if (swo == parent()->parent()->parent()->parent()) {
- Qt::red --> QVariant(QColor(Qt::red))
- WatchView *wv = qobject_cast<WatchView*>(windowList[i]->widget());
- etc... use your brain