2024-09-28 02:27:19 +00:00
|
|
|
package main
|
|
|
|
|
2024-10-03 04:22:49 +00:00
|
|
|
func constructorFunctionFor(className string) string {
|
2024-09-28 02:27:19 +00:00
|
|
|
|
|
|
|
// Rebuild this list via:
|
2024-10-03 04:22:49 +00:00
|
|
|
// grep -PRoh 'func New.+\(parent \*QWidget\)' ~/dev/miqt/qt/ | sed -re 's~^func New([^0-9]+)([0-9]*)\(.*~case "\1": return "New\1\2"~'
|
2024-09-28 02:27:19 +00:00
|
|
|
|
|
|
|
switch className {
|
|
|
|
|
|
|
|
// CODEGENERATED LIST START
|
|
|
|
|
|
|
|
case "QListWidget":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQListWidget2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QAbstractSpinBox":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQAbstractSpinBox2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QStackedLayout":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQStackedLayout2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QColumnView":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQColumnView2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QProgressDialog":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQProgressDialog3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QTabWidget":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQTabWidget2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QLabel":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQLabel3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QKeySequenceEdit":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQKeySequenceEdit3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QDockWidget":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQDockWidget5"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QFontComboBox":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQFontComboBox2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QTreeView":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQTreeView2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QCalendarWidget":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQCalendarWidget2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QLineEdit":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQLineEdit3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QMenuBar":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQMenuBar2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QFrame":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQFrame2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QAbstractScrollArea":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQAbstractScrollArea2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QSplitter":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQSplitter3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QStackedWidget":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQStackedWidget2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QWizard":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQWizard2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QWizardPage":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQWizardPage2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QMdiSubWindow":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQMdiSubWindow2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QStatusBar":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQStatusBar2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QToolButton":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQToolButton2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QShortcut":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQShortcut"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QSlider":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQSlider3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QComboBox":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQComboBox2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QScrollBar":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQScrollBar3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QTabBar":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQTabBar2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QTextBrowser":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQTextBrowser2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QTreeWidget":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQTreeWidget2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QDialog":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQDialog2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QFormLayout":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQFormLayout2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QToolBar":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQToolBar4"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QWidget":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQWidget2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QRadioButton":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQRadioButton3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QCheckBox":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQCheckBox3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QSizeGrip":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQSizeGrip"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QLCDNumber":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQLCDNumber3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QFileDialog":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQFileDialog3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QUndoView":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQUndoView4"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QGraphicsView":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQGraphicsView3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QPushButton":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQPushButton4"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QColorDialog":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQColorDialog3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QMessageBox":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQMessageBox4"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QSplashScreen":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQSplashScreen3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QErrorMessage":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQErrorMessage2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QListView":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQListView2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QDateTimeEdit":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQDateTimeEdit5"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QTimeEdit":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQTimeEdit3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QDateEdit":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQDateEdit3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QMenu":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQMenu3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QToolBox":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQToolBox2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QTableWidget":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQTableWidget3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QFocusFrame":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQFocusFrame2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QHBoxLayout":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQHBoxLayout2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QVBoxLayout":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQVBoxLayout2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QInputDialog":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQInputDialog2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QTableView":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQTableView2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QMdiArea":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQMdiArea2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QSpinBox":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQSpinBox2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QDoubleSpinBox":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQDoubleSpinBox2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QProgressBar":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQProgressBar2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QTextEdit":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQTextEdit3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QAbstractSlider":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQAbstractSlider2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QDialogButtonBox":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQDialogButtonBox5"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QFontDialog":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQFontDialog3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QMainWindow":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQMainWindow2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QCommandLinkButton":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQCommandLinkButton4"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QDial":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQDial2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QGridLayout":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQGridLayout"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QPlainTextEdit":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQPlainTextEdit3"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QScrollArea":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQScrollArea2"
|
2024-09-28 02:27:19 +00:00
|
|
|
case "QGroupBox":
|
2024-10-03 04:22:49 +00:00
|
|
|
return "NewQGroupBox3"
|
2024-09-28 02:27:19 +00:00
|
|
|
|
|
|
|
// CODEGENERATED LIST END
|
|
|
|
|
|
|
|
default:
|
2024-10-03 04:22:49 +00:00
|
|
|
// This class is not known to miqt-uic
|
|
|
|
// Assume it's a user promoted type from Qt Designer with a matching ctor
|
|
|
|
// of the form New{Class}(parent *QWidget)
|
|
|
|
return "New" + className
|
2024-09-28 02:27:19 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|