Warning, file /rolisteam/rolisteam/src/tests/auto/qobjects/tst_qobjects.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #include <QtTest/QtTest> 0002 #include <QGraphicsObject> 0003 #include <QStyledItemDelegate> 0004 0005 #include "aboutrcse.h" 0006 #include "alignmentdelegate.h" 0007 #include "borderlisteditor.h" 0008 #include "charactercontroller.h" 0009 #include "characterlist.h" 0010 #include "charactersheet/charactersheet.h" 0011 #include "charactersheet/charactersheet.h" 0012 #include "charactersheet/charactersheet_global.h" 0013 #include "charactersheet/charactersheetbutton.h" 0014 #include "charactersheet/charactersheetitem.h" 0015 #include "charactersheet/charactersheetitem.h" 0016 #include "charactersheet/charactersheetmodel.h" 0017 #include "charactersheet/charactersheetmodel.h" 0018 #include "charactersheet/controllers/fieldcontroller.h" 0019 #include "charactersheet/controllers/fieldcontroller.h" 0020 #include "charactersheet/controllers/section.h" 0021 #include "charactersheet/controllers/section.h" 0022 #include "charactersheet/controllers/tablefield.h" 0023 #include "charactersheet/controllers/tablefield.h" 0024 #include "charactersheet/csitem.h" 0025 #include "charactersheet/csitem.h" 0026 #include "charactersheet/imagemodel.h" 0027 #include "charactersheet/imagemodel.h" 0028 #include "charactersheet/rolisteamimageprovider.h" 0029 #include "charactersheet/rolisteamimageprovider.h" 0030 #include "charactersheet_formula/formula_global.h" 0031 #include "charactersheet_formula/formulamanager.h" 0032 #include "charactersheet_formula/nodes/formulanode.h" 0033 #include "charactersheet_formula/nodes/operator.h" 0034 #include "charactersheet_formula/nodes/parenthesesfnode.h" 0035 #include "charactersheet_formula/nodes/scalaroperatorfnode.h" 0036 #include "charactersheet_formula/nodes/startnode.h" 0037 #include "charactersheet_formula/nodes/valuefnode.h" 0038 #include "charactersheet_formula/parsingtoolformula.h" 0039 #include "charactersheet_widgets/charactersheet_widget_global.h" 0040 #include "charactersheet_widgets/sheetwidget.h" 0041 #include "charactersheet_widgets/sheetwidget.h" 0042 #include "codeedit.h" 0043 #include "codeeditor.h" 0044 #include "codeeditordialog.h" 0045 #include "common/common_types.h" 0046 #include "common/logcontroller.h" 0047 #include "common/remotelogcontroller.h" 0048 #include "common/uploadlogtoserver.h" 0049 #include "common_qml/theme.h" 0050 #include "common_widgets/busyindicatordialog.h" 0051 #include "common_widgets/colorbutton.h" 0052 #include "common_widgets/common_widgets_global.h" 0053 #include "common_widgets/logpanel.h" 0054 #include "controller/antagonistboardcontroller.h" 0055 #include "controller/audiocontroller.h" 0056 #include "controller/audioplayercontroller.h" 0057 #include "controller/contentcontroller.h" 0058 #include "controller/controllerinterface.h" 0059 #include "controller/gamecontroller.h" 0060 #include "controller/instantmessagingcontroller.h" 0061 #include "controller/item_controllers/characteritemcontroller.h" 0062 #include "controller/item_controllers/characteritemcontroller.h" 0063 #include "controller/item_controllers/ellipsecontroller.h" 0064 #include "controller/item_controllers/gridcontroller.h" 0065 #include "controller/item_controllers/imageitemcontroller.h" 0066 #include "controller/item_controllers/linecontroller.h" 0067 #include "controller/item_controllers/pathcontroller.h" 0068 #include "controller/item_controllers/rectcontroller.h" 0069 #include "controller/item_controllers/sightcontroller.h" 0070 #include "controller/item_controllers/textcontroller.h" 0071 #include "controller/item_controllers/visualitemcontroller.h" 0072 #include "controller/item_controllers/vmapitemfactory.h" 0073 #include "controller/networkcontroller.h" 0074 #include "controller/playercontroller.h" 0075 #include "controller/preferencescontroller.h" 0076 #include "controller/view_controller/charactersheetcontroller.h" 0077 #include "controller/view_controller/imagecontroller.h" 0078 #include "controller/view_controller/imageselectorcontroller.h" 0079 #include "controller/view_controller/mediacontrollerbase.h" 0080 #include "controller/view_controller/mindmapcontroller.h" 0081 #include "controller/view_controller/notecontroller.h" 0082 #include "controller/view_controller/pdfcontroller.h" 0083 #include "controller/view_controller/selectconnprofilecontroller.h" 0084 #include "controller/view_controller/sharednotecontroller.h" 0085 #include "controller/view_controller/vectorialmapcontroller.h" 0086 #include "controller/view_controller/vectorialmapcontroller.h" 0087 #include "controller/view_controller/webpagecontroller.h" 0088 #include "controllers/maincontroller.h" 0089 #include "csitem.h" 0090 #include "data/campaign.h" 0091 #include "data/campaigneditor.h" 0092 #include "data/campaignmanager.h" 0093 #include "data/character.h" 0094 #include "data/characterstate.h" 0095 #include "data/charactervision.h" 0096 #include "data/chatroom.h" 0097 #include "data/chatroomfactory.h" 0098 #include "data/cleveruri.h" 0099 #include "data/cleverurimimedata.h" 0100 #include "data/data.h" 0101 #include "data/diceshortcut.h" 0102 #include "data/localpersonmodel.h" 0103 #include "data/media.h" 0104 #include "data/person.h" 0105 #include "data/player.h" 0106 #include "data/resourcesnode.h" 0107 #include "data/rolisteammimedata.h" 0108 #include "data/rolisteamtheme.h" 0109 #include "data/shortcutmodel.h" 0110 #include "diceparser_qobject/diceroller.h" 0111 #include "editorcontroller.h" 0112 #include "fieldview.h" 0113 #include "instantmessaging/commandmessage.h" 0114 #include "instantmessaging/dicemessage.h" 0115 #include "instantmessaging/errormessage.h" 0116 #include "instantmessaging/im_global.h" 0117 #include "instantmessaging/messagefactory.h" 0118 #include "instantmessaging/messageinterface.h" 0119 #include "instantmessaging/textmessage.h" 0120 #include "instantmessaging/textwritercontroller.h" 0121 #include "itemeditor.h" 0122 #include "media/mediafactory.h" 0123 #include "media/mediatype.h" 0124 #include "mindmap/controller/selectioncontroller.h" 0125 #include "mindmap/controller/spacingcontroller.h" 0126 #include "mindmap/data/mindmaptypes.h" 0127 #include "mindmap/data/mindnode.h" 0128 #include "mindmap/data/nodestyle.h" 0129 #include "mindmap/geometry/linknode.h" 0130 #include "maincontroller.h" 0131 #include "mindmap/model/imagemodel.h" 0132 #include "mindmap/model/minditemmodel.h" 0133 #include "mindmap/model/nodeimageprovider.h" 0134 #include "mindmap/model/nodestylemodel.h" 0135 #include "mindmap/qmlItems/linkitem.h" 0136 #include "mindmap/worker/fileserializer.h" 0137 #include "model/actiononlistmodel.h" 0138 #include "model/charactermodel.h" 0139 #include "model/characterstatemodel.h" 0140 #include "model/chatroomsplittermodel.h" 0141 #include "model/contentmodel.h" 0142 #include "model/dicealiasmodel.h" 0143 #include "model/filteredplayermodel.h" 0144 #include "model/filterinstantmessagingmodel.h" 0145 #include "model/genericmodel.h" 0146 #include "model/historymodel.h" 0147 #include "model/instantmessagingmodel.h" 0148 #include "model/languagemodel.h" 0149 #include "model/mediafilteredmodel.h" 0150 #include "model/mediamodel.h" 0151 #include "model/messagemodel.h" 0152 #include "model/musicmodel.h" 0153 #include "model/nonplayablecharactermodel.h" 0154 #include "model/palettemodel.h" 0155 #include "model/participantmodel.h" 0156 #include "model/participantsmodel.h" 0157 #include "model/patternmodel.h" 0158 #include "model/playermodel.h" 0159 #include "model/playerproxymodel.h" 0160 #include "model/profilemodel.h" 0161 #include "model/remoteplayermodel.h" 0162 #include "model/singlecontenttypemodel.h" 0163 #include "model/thememodel.h" 0164 #include "model/vmapitemmodel.h" 0165 #include "mrichtextedit.h" 0166 #include "network/channel.h" 0167 #include "network/channelmodel.h" 0168 #include "network/characterdatamodel.h" 0169 #include "network/clientconnection.h" 0170 #include "network/clientmanager.h" 0171 #include "network/connectionaccepter.h" 0172 #include "network/connectionprofile.h" 0173 #include "network/heartbeatsender.h" 0174 #include "network/ipbanaccepter.h" 0175 #include "network/iprangeaccepter.h" 0176 #include "network/messagedispatcher.h" 0177 #include "network/network_type.h" 0178 #include "network/networkmessage.h" 0179 #include "network/networkmessagereader.h" 0180 #include "network/networkmessagewriter.h" 0181 #include "network/networkreceiver.h" 0182 #include "network/passwordaccepter.h" 0183 #include "network/receiveevent.h" 0184 #include "network/rserver.h" 0185 #include "network/serverconnection.h" 0186 #include "network/timeaccepter.h" 0187 #include "network/treeitem.h" 0188 #include "pdfmanager.h" 0189 #include "preferences/preferenceslistener.h" 0190 #include "preferences/preferencesmanager.h" 0191 #include "qml_components/avatarprovider.h" 0192 #include "qml_views/include/qml_views/image_selector.h" 0193 #include "rcseapplicationcontroller.h" 0194 #include "rwidgets/commands/movevmapitem.h" 0195 #include "rwidgets/customs/centeredcheckbox.h" 0196 #include "rwidgets/customs/checkedlabel.h" 0197 #include "rwidgets/customs/circledisplayer.h" 0198 #include "rwidgets/customs/colorlisteditor.h" 0199 #include "rwidgets/customs/diameterselector.h" 0200 #include "rwidgets/customs/filedirchooser.h" 0201 #include "rwidgets/customs/imagepatheditor.h" 0202 #include "rwidgets/customs/overlay.h" 0203 #include "rwidgets/customs/playerwidget.h" 0204 #include "rwidgets/customs/realslider.h" 0205 #include "rwidgets/customs/rgraphicsview.h" 0206 #include "rwidgets/customs/shortcutvisitor.h" 0207 #include "rwidgets/customs/updaterwindow.h" 0208 #include "rwidgets/customs/vcolorselector.h" 0209 #include "rwidgets/customs/vcolortablechooser.h" 0210 #include "rwidgets/customs/vmap.h" 0211 #include "rwidgets/customs/workspace.h" 0212 #include "rwidgets/delegates/actiondelegate.h" 0213 #include "rwidgets/delegates/avatardelegate.h" 0214 #include "rwidgets/delegates/checkboxdelegate.h" 0215 #include "rwidgets/delegates/colordelegate.h" 0216 #include "rwidgets/delegates/delegate.h" 0217 #include "rwidgets/delegates/imagepathdelegateitem.h" 0218 #include "rwidgets/delegates/taglistdelegate.h" 0219 #include "rwidgets/delegates/userlistdelegate.h" 0220 #include "rwidgets/dialogs/aboutrolisteam.h" 0221 #include "rwidgets/dialogs/campaignintegritydialog.h" 0222 #include "rwidgets/dialogs/campaignproperties.h" 0223 #include "rwidgets/dialogs/connectionretrydialog.h" 0224 #include "rwidgets/dialogs/historyviewerdialog.h" 0225 #include "rwidgets/dialogs/imageselectordialog.h" 0226 #include "rwidgets/dialogs/importdatafromcampaigndialog.h" 0227 #include "rwidgets/dialogs/keygeneratordialog.h" 0228 #include "rwidgets/dialogs/newfiledialog.h" 0229 #include "rwidgets/dialogs/persondialog.h" 0230 #include "rwidgets/dialogs/preferencesdialog.h" 0231 #include "rwidgets/dialogs/selectconnectionprofiledialog.h" 0232 #include "rwidgets/dialogs/shortcuteditordialog.h" 0233 #include "rwidgets/dialogs/tipofdayviewer.h" 0234 #include "rwidgets/dialogs/vmapwizzarddialog.h" 0235 #include "rwidgets/docks/antagonistboard.h" 0236 #include "rwidgets/docks/audioPlayer.h" 0237 #include "rwidgets/docks/campaigndock.h" 0238 #include "rwidgets/docks/channellistpanel.h" 0239 #include "rwidgets/docks/notificationzone.h" 0240 #include "rwidgets/docks/playerspanel.h" 0241 #include "rwidgets/docks/vmaptoolbar.h" 0242 #include "rwidgets/editors/mtextedit.h" 0243 #include "rwidgets/editors/noteeditor/src/notecontainer.h" 0244 #include "rwidgets/editors/noteeditor/src/textedit.h" 0245 #include "rwidgets/editors/sharededitor/codeeditor.h" 0246 #include "rwidgets/editors/sharededitor/connecttodocument.h" 0247 #include "rwidgets/editors/sharededitor/document.h" 0248 #include "rwidgets/editors/sharededitor/enu.h" 0249 #include "rwidgets/editors/sharededitor/finddialog.h" 0250 #include "rwidgets/editors/sharededitor/findtoolbar.h" 0251 #include "rwidgets/editors/sharededitor/firstrundialog.h" 0252 #include "rwidgets/editors/sharededitor/markdownhighlighter.h" 0253 #include "rwidgets/editors/sharededitor/participantspane.h" 0254 #include "rwidgets/editors/sharededitor/sharednote.h" 0255 #include "rwidgets/editors/sharededitor/sharednotecontainer.h" 0256 #include "rwidgets/editors/sharededitor/utilities.h" 0257 #include "rwidgets/gmtoolbox/DiceBookMark/dicebookmarkmodel.h" 0258 #include "rwidgets/gmtoolbox/DiceBookMark/dicebookmarkwidget.h" 0259 #include "rwidgets/gmtoolbox/NameGenerator/namegeneratorwidget.h" 0260 #include "rwidgets/gmtoolbox/UnitConvertor/convertor.h" 0261 #include "rwidgets/gmtoolbox/UnitConvertor/convertoroperator.h" 0262 #include "rwidgets/gmtoolbox/UnitConvertor/customrulemodel.h" 0263 #include "rwidgets/gmtoolbox/UnitConvertor/unit.h" 0264 #include "rwidgets/gmtoolbox/UnitConvertor/unitmodel.h" 0265 #include "rwidgets/gmtoolbox/gamemastertool.h" 0266 #include "rwidgets/graphicsItems/anchoritem.h" 0267 #include "rwidgets/graphicsItems/characteritem.h" 0268 #include "rwidgets/graphicsItems/childpointitem.h" 0269 #include "rwidgets/graphicsItems/ellipsitem.h" 0270 #include "rwidgets/graphicsItems/griditem.h" 0271 #include "rwidgets/graphicsItems/highlighteritem.h" 0272 #include "rwidgets/graphicsItems/imageitem.h" 0273 #include "rwidgets/graphicsItems/lineitem.h" 0274 #include "rwidgets/graphicsItems/pathitem.h" 0275 #include "rwidgets/graphicsItems/rectitem.h" 0276 #include "rwidgets/graphicsItems/ruleitem.h" 0277 #include "rwidgets/graphicsItems/sightitem.h" 0278 #include "rwidgets/graphicsItems/textitem.h" 0279 #include "rwidgets/graphicsItems/visualitem.h" 0280 #include "rwidgets/layouts/flowlayout.h" 0281 #include "rwidgets/mediacontainers/charactersheetwindow.h" 0282 #include "rwidgets/mediacontainers/image.h" 0283 #include "rwidgets/mediacontainers/instantmessagingview.h" 0284 #include "rwidgets/mediacontainers/mediacontainer.h" 0285 #include "rwidgets/mediacontainers/mindmapview.h" 0286 #include "rwidgets/mediacontainers/pdfviewer.h" 0287 #include "rwidgets/mediacontainers/vmapframe.h" 0288 #include "rwidgets/mediacontainers/webview.h" 0289 #include "rwidgets/modelviews/campaignview.h" 0290 #include "rwidgets/modelviews/dragabletableview.h" 0291 #include "rwidgets/modelviews/userlistview.h" 0292 #include "rwidgets/rwidgets_global.h" 0293 #include "rwidgets/toolbars/vtoolbar.h" 0294 #include "services/ipchecker.h" 0295 #include "services/tipchecker.h" 0296 #include "services/updatechecker.h" 0297 #include "session/sessionitemmodel.h" 0298 #include "sidemenucontroller.h" 0299 #include "tablecanvasfield.h" 0300 #include "updater/controller/audioplayerupdater.h" 0301 #include "updater/controller/servermanagerupdater.h" 0302 #include "updater/media/campaignupdater.h" 0303 #include "updater/media/charactersheetupdater.h" 0304 #include "updater/media/genericupdater.h" 0305 #include "updater/media/instantmessagingupdater.h" 0306 #include "updater/media/mediaupdaterinterface.h" 0307 #include "updater/media/mindmapupdater.h" 0308 #include "updater/media/sharednotecontrollerupdater.h" 0309 #include "updater/media/vmapupdater.h" 0310 #include "updater/media/webviewupdater.h" 0311 #include "updater/vmapitem/characteritemupdater.h" 0312 #include "updater/vmapitem/ellipsecontrollerupdater.h" 0313 #include "updater/vmapitem/imagecontrollerupdater.h" 0314 #include "updater/vmapitem/linecontrollerupdater.h" 0315 #include "updater/vmapitem/pathcontrollerupdater.h" 0316 #include "updater/vmapitem/rectcontrollerupdater.h" 0317 #include "updater/vmapitem/textcontrollerupdater.h" 0318 #include "updater/vmapitem/vmapitemcontrollerupdater.h" 0319 #include "utils/countdownobject.h" 0320 #include "utils/iohelper.h" 0321 #include "utils/networkdownloader.h" 0322 #include "vtoolbar.h" 0323 #include "worker/autosavecontroller.h" 0324 #include "worker/convertionhelper.h" 0325 #include "worker/fileserializer.h" 0326 #include "worker/iohelper.h" 0327 #include "worker/messagehelper.h" 0328 #include "worker/modelhelper.h" 0329 #include "worker/networkhelper.h" 0330 #include "worker/playermessagehelper.h" 0331 #include "worker/utilshelper.h" 0332 #include "worker/vectorialmapmessagehelper.h" 0333 #include "clientmanager.h" 0334 #include "workspace.h" 0335 #include "upnp/upnpnat.h" 0336 #include "positioneditem.h" 0337 #include "preferencesmanager.h" 0338 #include "proxystatemodel.h" 0339 #include "rolisteamapplication.h" 0340 #include "rolisteamdaemon.h" 0341 #include "rcse/mainwindow.h" 0342 #include "widget/mainwindow.h" 0343 #include "mappinghelper.h" 0344 #include "mediamodel.h" 0345 #include "minditem.h" 0346 #include "minditemmodel.h" 0347 #include "mindmapcontrollerbase.h" 0348 #include "notecontainer.h" 0349 #include "sheetcontroller.h" 0350 #include "sheetproperties.h" 0351 #include "sidemenucontroller.h" 0352 #include "slidercontroller.h" 0353 #include "statedelegate.h" 0354 #include "tablecanvasfield.h" 0355 #include "textedit.h" 0356 #include "charactersheetitem.h" 0357 #include "visualitemcontroller.h" 0358 #include "XML_Editor.h" 0359 0360 0361 #include <helper.h> 0362 #include <memory> 0363 #include <QWidget> 0364 0365 class QObjectsTest : public QObject 0366 { 0367 Q_OBJECT 0368 public: 0369 QObjectsTest(); 0370 0371 private slots: 0372 void init(); 0373 0374 void propertiesTest(); 0375 void propertiesTest_data(); 0376 0377 // void profilePropertiesTest(); 0378 }; 0379 0380 QObjectsTest::QObjectsTest() {} 0381 void QObjectsTest::init() {} 0382 0383 /*void QObjectsTest::profilePropertiesTest() 0384 { 0385 ProfileModel model; 0386 model.appendProfile(); 0387 0388 SelectConnProfileController ctrl(&model); 0389 }*/ 0390 0391 void QObjectsTest::propertiesTest() 0392 { 0393 QFETCH(QObject*, object); 0394 QFETCH(bool, setAgain); 0395 0396 auto meta = object->metaObject(); 0397 qDebug() <<"class:" <<meta->className(); 0398 auto res= Helper::testAllProperties(object, setAgain); 0399 if(!res.second.isEmpty()) 0400 QVERIFY(res.first); 0401 for(const auto& f : res.second) 0402 { 0403 qDebug() << "Unmanaged:" << f; 0404 } 0405 0406 object->deleteLater(); 0407 } 0408 0409 void QObjectsTest::propertiesTest_data() 0410 { 0411 QTest::addColumn<QObject*>("object"); 0412 QTest::addColumn<bool>("setAgain"); 0413 0414 0415 auto model= new ProfileModel(); 0416 auto profileCtrl= new SelectConnProfileController(model); 0417 profileCtrl->addProfile(); 0418 profileCtrl->setCurrentProfileIndex(0); 0419 QMap<QString, QVariant> params; 0420 auto ctrl= new mindmap::MindItemModel(nullptr); 0421 std::vector<DiceShortCut> shorCuts; 0422 0423 // clang-format off 0424 // QTest::addRow("obj", i++) << new MRichTextEdit()<< true ; 0425 QTest::addRow("AboutRcse") << static_cast<QObject*>(new AboutRcse(Helper::randomString()))<< true ; 0426 QTest::addRow("AboutRolisteam") << static_cast<QObject*>(new AboutRolisteam({})) << true; 0427 QTest::addRow("ActionDelegate") << static_cast<QObject*>(new ActionDelegate()) << true; 0428 QTest::addRow("ActionOnListModel") << static_cast<QObject*>(new ActionOnListModel({}, {}, {})) << true; 0429 QTest::addRow("AlignmentDelegate") << static_cast<QObject*>(new AlignmentDelegate())<< true ; 0430 QTest::addRow("AnchorItem obj") << static_cast<QObject*>(new AnchorItem()) << true; 0431 QTest::addRow("AntagonistBoard") << static_cast<QObject*>(new campaign::AntagonistBoard(nullptr)) << true; // 200 0432 QTest::addRow("AntagonistBoardController") << static_cast<QObject*>(new campaign::AntagonistBoardController(new campaign::CampaignEditor())) << true; 0433 QTest::addRow("AudioController") << static_cast<QObject*>(new AudioController(nullptr, nullptr)) << true; 0434 QTest::addRow("AudioPlayer") << static_cast<QObject*>(new AudioPlayer(nullptr)) << true; 0435 QTest::addRow("AudioPlayerController") << static_cast<QObject*>(new AudioPlayerController(0, "k", nullptr)) << true; 0436 QTest::addRow("AudioPlayerUpdater") << static_cast<QObject*>(new AudioPlayerUpdater(nullptr, nullptr)) << true; 0437 QTest::addRow("AutoSaveController") << static_cast<QObject*>(new AutoSaveController(nullptr)) << true; 0438 QTest::addRow("AvatarDelegate") << static_cast<QObject*>(new AvatarDelegate()) << true; 0439 QTest::addRow("AvatarProvider") << static_cast<QObject*>(new AvatarProvider(nullptr)) << true; 0440 QTest::addRow("BackgroundButton") << static_cast<QObject*>(new BackgroundButton(nullptr)) << true; 0441 QTest::addRow("BorderListEditor") << static_cast<QObject*>(new BorderListEditor())<< true ; 0442 QTest::addRow("BusyIndicatorDialog") << static_cast<QObject*>(new BusyIndicatorDialog(Helper::randomString(), Helper::randomString(), Helper::randomString())) << true; 0443 QTest::addRow("ButtonCanvas") << static_cast<QObject*>(new ButtonCanvas())<< true ; 0444 QTest::addRow("CSItem") << static_cast<QObject*>(new CSItem(TreeSheetItem::FieldItem))<< true ; 0445 QTest::addRow("Campaign") << static_cast<QObject*>(new campaign::Campaign()) << true; 0446 QTest::addRow("CampaignDock") << static_cast<QObject*>(new campaign::CampaignDock(new campaign::CampaignEditor())) << true; 0447 QTest::addRow("CampaignEditor") << static_cast<QObject*>(new campaign::CampaignEditor()) << true; 0448 QTest::addRow("CampaignIntegrityDialog") << static_cast<QObject*>(new campaign::CampaignIntegrityDialog({}, {}, {})) << true; 0449 QTest::addRow("CampaignManager") << static_cast<QObject*>(new campaign::CampaignManager(nullptr)) << true; 0450 QTest::addRow("CampaignProperties") << static_cast<QObject*>(new CampaignProperties(new campaign::Campaign(), nullptr)) << true; 0451 QTest::addRow("CampaignUpdater") << static_cast<QObject*>(new campaign::CampaignUpdater(nullptr, new campaign::Campaign())) << true; // 100 0452 QTest::addRow("CampaignView") << static_cast<QObject*>(new campaign::CampaignView()) << true; 0453 QTest::addRow("Canvas") << static_cast<QObject*>(new Canvas(new EditorController(new ImageController())))<< true ; 0454 QTest::addRow("CanvasField") << static_cast<QObject*>(new CanvasField(new FieldController(TreeSheetItem::FieldItem, true)))<< true ; 0455 QTest::addRow("CategoryModel obj") << static_cast<QObject*>(new GMTOOL::CategoryModel()) << true; 0456 QTest::addRow("CenteredCheckBox") << static_cast<QObject*>(new CenteredCheckBox()) << true; 0457 QTest::addRow("Channel") << static_cast<QObject*>(new Channel()) << true; 0458 QTest::addRow("ChannelListPanel") << static_cast<QObject*>(new ChannelListPanel(new NetworkController())) << true; 0459 QTest::addRow("ChannelModel") << static_cast<QObject*>(new ChannelModel()) << true; 0460 auto character = new Character(); 0461 character->setHealthPointsMax(std::numeric_limits<int>::max()); 0462 character->setHealthPointsMin(std::numeric_limits<int>::min()); 0463 QTest::addRow("Character") << static_cast<QObject*>(character) << true; 0464 QTest::addRow("CharacterController") << static_cast<QObject*>(new CharacterController())<< true ; 0465 QTest::addRow("CharacterDataModel") << static_cast<QObject*>(new CharacterDataModel()) << true; 0466 QTest::addRow("CharacterItem") << static_cast<QObject*>( new CharacterItem(new vmap::CharacterItemController({}, new VectorialMapController()))) << true; 0467 QTest::addRow("CharacterItemController") << static_cast<QObject*>( new vmap::CharacterItemController({{Core::vmapkeys::KEY_CHARAC_NPC, false}}, new VectorialMapController())) << true; 0468 QTest::addRow("CharacterItemUpdater") << static_cast<QObject*>(new CharacterItemUpdater()) << true; 0469 QTest::addRow("CharacterList") << static_cast<QObject*>(new CharacterList(new CharacterSheetModel()))<< true ; 0470 QTest::addRow("CharacterModel") << static_cast<QObject*>(new CharacterModel()) << true; 0471 QTest::addRow("CharacterSheet") << static_cast<QObject*>(new CharacterSheet()) << true; 0472 QTest::addRow("CharacterSheetController") << static_cast<QObject*>(new CharacterSheetController()) << true; 0473 QTest::addRow("CharacterSheetModel") << static_cast<QObject*>(new CharacterSheetModel()) << true; 0474 QTest::addRow("CharacterSheetUpdater") << static_cast<QObject*>(new CharacterSheetUpdater({})) << true; 0475 QTest::addRow("CharacterSheetWindow") << static_cast<QObject*>(new CharacterSheetWindow(nullptr)) << true; 0476 QTest::addRow("CharacterStateModel") << static_cast<QObject*>(new CharacterStateModel()) << true; 0477 QTest::addRow("CharacterVision") << static_cast<QObject*>(new CharacterVision()) << true; 0478 QTest::addRow("ChatRoom") << static_cast<QObject*>( new InstantMessaging::ChatRoom(nullptr, InstantMessaging::ChatRoom::GLOBAL)) << true; 0479 QTest::addRow("ChatroomSplitterModel") << static_cast<QObject*>(new InstantMessaging::ChatroomSplitterModel()) << true; 0480 QTest::addRow("CheckBoxDelegate") << static_cast<QObject*>(new rwidgets::CheckBoxDelegate()) << true; 0481 QTest::addRow("CheckedLabel") << static_cast<QObject*>(new CheckedLabel()) << true; 0482 QTest::addRow("ChildPointItem obj") << static_cast<QObject*>(new ChildPointItem(nullptr, 0, nullptr)) << true; 0483 QTest::addRow("CircleDisplayer") << static_cast<QObject*>(new CircleDisplayer()) << true; 0484 QTest::addRow("CleverURI") << static_cast<QObject*>(new CleverURI(Core::ContentType::UNKNOWN)) << true; 0485 QTest::addRow("CleverUriMimeData") << static_cast<QObject*>(new CleverUriMimeData()) << true; 0486 QTest::addRow("ClientConnection") << static_cast<QObject*>(new ClientConnection()) << true; 0487 QTest::addRow("ClientManager") << static_cast<QObject*>(new ClientManager()) << true; 0488 QTest::addRow("ClientMimeData") << static_cast<QObject*>(new ClientMimeData()) << true; 0489 QTest::addRow("CodeEdit") << static_cast<QObject*>(new CodeEdit(new FieldController(TreeSheetItem::FieldItem, true)))<< true ; 0490 QTest::addRow("CodeEditor") << static_cast<QObject*>(new CodeEditor(nullptr)) << true; 0491 QTest::addRow("CodeEditorDialog") << static_cast<QObject*>(new CodeEditorDialog())<< true ; 0492 QTest::addRow("ColorButton") << static_cast<QObject*>(new ColorButton()) << true; 0493 QTest::addRow("ColorDelegate") << static_cast<QObject*>(new rwidgets::ColorDelegate()) << true; 0494 QTest::addRow("ColorListEditor") << static_cast<QObject*>(new rwidgets::ColorListEditor()) << true; 0495 QTest::addRow("ColorModel") << static_cast<QObject*>(new ColorModel())<< true ; 0496 QTest::addRow("ColorTable") << static_cast<QObject*>(new ColorTable()) << true; 0497 QTest::addRow("ColorTableChooser") << static_cast<QObject*>(new ColorTableChooser()) << true; 0498 QTest::addRow("ColumnDefinitionDialog") << static_cast<QObject*>(new ColumnDefinitionDialog())<< true ; 0499 QTest::addRow("CommandMessage") << static_cast<QObject*>(new InstantMessaging::CommandMessage({}, {}, {})) << true; 0500 QTest::addRow("ConnectionProfile") << static_cast<QObject*>(new ConnectionProfile()) << true; 0501 QTest::addRow("ConnectionRetryDialog") << static_cast<QObject*>(new ConnectionRetryDialog()) << true; 0502 QTest::addRow("ContentController") << static_cast<QObject*>( new ContentController(nullptr, nullptr, nullptr, nullptr)) << true; 0503 QTest::addRow("ContentModel") << static_cast<QObject*>(new ContentModel()) << true; 0504 QTest::addRow("Convertor obj") << static_cast<QObject*>(new GMTOOL::Convertor()) << true; 0505 QTest::addRow("CountDownObject") << static_cast<QObject*>(new CountDownObject(20, 1000)) << true; 0506 QTest::addRow("CustomRuleModel obj") << static_cast<QObject*>(new GMTOOL::CustomRuleModel()) << true; 0507 QTest::addRow("Delegate") << static_cast<QObject*>(new Delegate())<< true ; 0508 QTest::addRow("Delegate") << static_cast<QObject*>(new Delegate()) << true; 0509 QTest::addRow("DiameterSelector") << static_cast<QObject*>(new DiameterSelector()) << true; 0510 QTest::addRow("DiceAliasModel") << static_cast<QObject*>(new DiceAliasModel()) << true; 0511 QTest::addRow("DiceBookMarkModel") << static_cast<QObject*>(new DiceBookMarkModel(shorCuts)) << true; 0512 QTest::addRow("DiceBookMarkWidget obj") << static_cast<QObject*>(new DiceBookMarkWidget(shorCuts)) << true; 0513 QTest::addRow("DiceMessage") << static_cast<QObject*>(new InstantMessaging::DiceMessage({}, {}, {})) << true; 0514 QTest::addRow("DiceRoller") << static_cast<QObject*>(new DiceRoller()) << true; 0515 QTest::addRow("Document") << static_cast<QObject*>(new Document(nullptr)) << true; 0516 QTest::addRow("DragableTableView") << static_cast<QObject*>(new DragableTableView()) << true; 0517 QTest::addRow("EditorController") << static_cast<QObject*>(new EditorController(new ImageController))<< true ; 0518 QTest::addRow("EllipsItem obj") << static_cast<QObject*>(new EllipsItem(nullptr)) << true; 0519 QTest::addRow("EllipseController") << static_cast<QObject*>( new vmap::EllipseController({}, new VectorialMapController())) << true; 0520 QTest::addRow("EllipseControllerUpdater") << static_cast<QObject*>(new EllipseControllerUpdater()) << true; 0521 QTest::addRow("ErrorMessage") << static_cast<QObject*>(new InstantMessaging::ErrorMessage({}, {}, {})) << true; 0522 QTest::addRow("FieldController") << static_cast<QObject*>(new FieldController(TreeSheetItem::FieldItem, true)) << true; 0523 QTest::addRow("FieldModel") << static_cast<QObject*>(new FieldModel())<< true ; 0524 QTest::addRow("FieldView") << static_cast<QObject*>(new FieldView())<< true ; 0525 QTest::addRow("FileDirChooser") << static_cast<QObject*>(new FileDirChooser()) << true; 0526 QTest::addRow("FileSerializer") << static_cast<QObject*>(new mindmap::FileSerializer()) << true; 0527 QTest::addRow("FilterInstantMessagingModel") << static_cast<QObject*>(new InstantMessaging::FilterInstantMessagingModel()) << true; 0528 QTest::addRow("FilteredCharacterModel") << static_cast<QObject*>(new campaign::FilteredCharacterModel()) << true; 0529 QTest::addRow("FilteredContentModel") << static_cast<QObject*>(new FilteredContentModel(Core::ContentType::UNKNOWN)) << true; 0530 QTest::addRow("FilteredModel") << static_cast<QObject*>(new mindmap::FilteredModel())<< true ; 0531 QTest::addRow("FilteredPlayerModel") << static_cast<QObject*>(new InstantMessaging::FilteredPlayerModel({})) << true; 0532 QTest::addRow("FindDialog") << static_cast<QObject*>(new FindDialog()) << true; 0533 QTest::addRow("FindToolBar") << static_cast<QObject*>(new FindToolBar()) << true; 0534 QTest::addRow("FlowLayout") << static_cast<QObject*>(new FlowLayout(nullptr)) << true; 0535 QTest::addRow("GameController") << static_cast<QObject*>(new GameController("test", "1.2", nullptr)) << true; 0536 QTest::addRow("GenericModel") << static_cast<QObject*>(new GenericModel({Helper::randomString(),Helper::randomString(),Helper::randomString()}))<< true ; 0537 QTest::addRow("GenericModel") << static_cast<QObject*>(new GenericModel({})) << true; 0538 QTest::addRow("GenericUpdater") << static_cast<QObject*>(new GenericUpdater(nullptr)) << true; 0539 QTest::addRow("Gloader") << static_cast<QObject*>(new Gloader())<< true ; 0540 QTest::addRow("GridController") << static_cast<QObject*>(new vmap::GridController(new VectorialMapController())) << true; 0541 QTest::addRow("GridItem obj") << static_cast<QObject*>(new GridItem(nullptr)) << true; 0542 QTest::addRow("HeartBeatSender") << static_cast<QObject*>(new HeartBeatSender())<< true ; 0543 QTest::addRow("HiddingButton") << static_cast<QObject*>(new HiddingButton(nullptr))<< true ; 0544 QTest::addRow("HighlighterItem obj") << static_cast<QObject*>(new HighlighterItem({}, 3, Qt::red, nullptr, false)) << true; 0545 QTest::addRow("HistoryModel") << static_cast<QObject*>(new history::HistoryModel()) << true; 0546 QTest::addRow("HistoryViewerDialog") << static_cast<QObject*>(new HistoryViewerDialog(nullptr)) << true; 0547 QTest::addRow("Image") << static_cast<QObject*>(new Image(new ImageController())) << true; 0548 QTest::addRow("ImageController") << static_cast<QObject*>(new ImageController()) << true; 0549 QTest::addRow("ImageControllerUpdater") << static_cast<QObject*>(new ImageControllerUpdater()) << true; 0550 QTest::addRow("ImageItem obj") << static_cast<QObject*>(new ImageItem(nullptr)) << true; 0551 QTest::addRow("ImageItemController") << static_cast<QObject*>( new vmap::ImageItemController({}, new VectorialMapController())) << true; 0552 QTest::addRow("ImageModel") << static_cast<QObject*>(new charactersheet::ImageModel()) << true; 0553 QTest::addRow("ImagePathDelegateItem") << static_cast<QObject*>(new rwidgets::ImagePathDelegateItem({})) << true; 0554 QTest::addRow("ImagePathEditor") << static_cast<QObject*>(new rwidgets::ImagePathEditor({})) << true; 0555 QTest::addRow("ImageSelector") << static_cast<QObject*>(new ImageSelector()) << true; 0556 QTest::addRow("ImageSelectorController") << static_cast<QObject*>(new ImageSelectorController()) << true; 0557 QTest::addRow("ImageSelectorDialog") << static_cast<QObject*>(new ImageSelectorDialog(new ImageSelectorController())) << true; 0558 QTest::addRow("ImportDataFromCampaignDialog") << static_cast<QObject*>(new ImportDataFromCampaignDialog({})) << true; 0559 QTest::addRow("InstantMessagerManager") << static_cast<QObject*>(new InstantMessagerManager()) << true; 0560 QTest::addRow("InstantMessaging") << static_cast<QObject*>(new InstantMessaging::InstantMessagingModel(nullptr, nullptr)) << true; 0561 QTest::addRow("InstantMessagingController") << static_cast<QObject*>(new InstantMessagingController(nullptr, nullptr)) << true; 0562 QTest::addRow("InstantMessagingModel") << static_cast<QObject*>(new InstantMessaging::InstantMessagingModel(new DiceRoller,new PlayerModel()))<< true ; 0563 QTest::addRow("InstantMessagingUpdater") << static_cast<QObject*>(new InstantMessaging::InstantMessagingUpdater()) << true; 0564 QTest::addRow("InstantMessagingView") << static_cast<QObject*>(new InstantMessagingView(new InstantMessagingController(new DiceRoller, new PlayerModel()))) << true ; 0565 QTest::addRow("IpChecker") << static_cast<QObject*>(new IpChecker()) << true; 0566 QTest::addRow("ItemEditor") << static_cast<QObject*>(new ItemEditor())<< true ; 0567 QTest::addRow("KeyGeneratorDialog") << static_cast<QObject*>(new KeyGeneratorDialog()) << true; 0568 QTest::addRow("LabelWithOptions") << static_cast<QObject*>(new LabelWithOptions()) << true; 0569 QTest::addRow("LanguageModel") << static_cast<QObject*>(new LanguageModel()) << true; 0570 QTest::addRow("LineController") << static_cast<QObject*>(new vmap::LineController({}, new VectorialMapController())) << true; 0571 QTest::addRow("LineControllerUpdater") << static_cast<QObject*>(new LineControllerUpdater()) << true; 0572 QTest::addRow("LineFieldItem") << static_cast<QObject*>(new LineFieldItem()) << true; 0573 QTest::addRow("LineItem obj") << static_cast<QObject*>(new LineItem(nullptr)) << true; 0574 QTest::addRow("LineModel") << static_cast<QObject*>(new LineModel()) << true; 0575 QTest::addRow("LinkController") << static_cast<QObject*>(new mindmap::LinkController()) << true; 0576 QTest::addRow("LinkItem") << static_cast<QObject*>(new mindmap::LinkItem()) << true; 0577 QTest::addRow("LocalPersonModel") << static_cast<QObject*>(new LocalPersonModel())<< true ; 0578 QTest::addRow("LocalPersonModel") << static_cast<QObject*>(new LocalPersonModel()) << true; 0579 QTest::addRow("LogController") << static_cast<QObject*>(new LogController(true)) << true; 0580 QTest::addRow("LogPanel") << static_cast<QObject*>(new LogPanel()) << true; 0581 QTest::addRow("LogUploader") << static_cast<QObject*>(new LogUploader()) << true; 0582 QTest::addRow("MRichTextEdit") << static_cast<QObject*>(new MRichTextEdit())<< true ; 0583 QTest::addRow("MTextEdit") << static_cast<QObject*>(new MTextEdit()) << true; 0584 QTest::addRow("MainController") << static_cast<QObject*>(new MainController())<< true ; 0585 QTest::addRow("RCSE::MainController") << static_cast<QObject*>(new rcse::MainController())<< true ; 0586 QTest::addRow("rcse::MainWindow") << static_cast<QObject*>(new rcse::MainWindow())<< true ; 0587 //QTest::addRow("MainWindow") << static_cast<QObject*>(new MainWindow(new GameController(Helper::randomString(),Helper::randomString(), nullptr), {}))<< true ; 0588 QTest::addRow("MapWizzardDialog") << static_cast<QObject*>(new MapWizzardDialog()) << true; 0589 QTest::addRow("MappingHelper") << static_cast<QObject*>(new utils::MappingHelper())<< true ; 0590 QTest::addRow("MarkDownHighlighter") << static_cast<QObject*>(new MarkDownHighlighter()) << true; 0591 QTest::addRow("Media") << static_cast<QObject*>(new campaign::Media({}, {}, {}, Core::MediaType::AudioFile)) << true; 0592 QTest::addRow("MediaContainer") << static_cast<QObject*>(new MediaContainer(new MediaControllerBase("uuid", Core::ContentType::UNKNOWN), MediaContainer::ContainerType::NoteContainer)) << true; 0593 QTest::addRow("MediaControllerBase") << static_cast<QObject*>(new MediaControllerBase(Helper::randomString(), Core::ContentType::NOTES))<< true ; 0594 QTest::addRow("MediaFilteredModel") << static_cast<QObject*>(new MediaFilteredModel()) << true; 0595 QTest::addRow("MediaModel") << static_cast<QObject*>(new campaign::MediaModel(new campaign::Campaign))<< true ; 0596 QTest::addRow("MediaNode") << static_cast<QObject*>(new campaign::MediaNode(campaign::MediaNode::File, {})) << true; 0597 QTest::addRow("MessageDispatcher") << static_cast<QObject*>(new MessageDispatcher()) << true; 0598 QTest::addRow("MessageModel") << static_cast<QObject*>(new InstantMessaging::MessageModel(nullptr)) << true; 0599 QTest::addRow("MindItem") << static_cast<QObject*>(new mindmap::MindItem(mindmap::MindItem::NodeType))<< true ; 0600 QTest::addRow("MindItemModel") << static_cast<QObject*>(new mindmap::MindItemModel(new mindmap::ImageModel))<< true ; 0601 QTest::addRow("MindMapController") << static_cast<QObject*>(new MindMapController("idxxxxx")) << true; 0602 QTest::addRow("MindMapControllerBase") << static_cast<QObject*>(new mindmap::MindMapControllerBase(false, Helper::randomString()))<< true ; 0603 QTest::addRow("MindMapUpdater") << static_cast<QObject*>(new MindMapUpdater(nullptr, nullptr)) << true; 0604 QTest::addRow("MindMapView") << static_cast<QObject*>(new MindMapView(nullptr)) << true; 0605 QTest::addRow("MindNode") << static_cast<QObject*>(new mindmap::MindNode()) << true; 0606 QTest::addRow("MindmapManager") << static_cast<QObject*>(new MindmapManager()) << true; 0607 QTest::addRow("MockCharacter") << static_cast<QObject*>(new MockCharacter())<< true ; 0608 QTest::addRow("MusicModel") << static_cast<QObject*>(new MusicModel()) << true; 0609 QTest::addRow("NameGeneratorWidget obj") << static_cast<QObject*>(new NameGeneratorWidget()) << true; 0610 QTest::addRow("NetworkController") << static_cast<QObject*>(new NetworkController()) << true; 0611 QTest::addRow("NetworkDownloader") << static_cast<QObject*>(new NetworkDownloader({})) << true; 0612 QTest::addRow("NewFileDialog") << static_cast<QObject*>(new NewFileDialog(Core::ContentType::VECTORIALMAP)) << true; 0613 QTest::addRow("NodeImageProvider") << static_cast<QObject*>(new mindmap::NodeImageProvider(nullptr)) << true; 0614 QTest::addRow("NodeStyle") << static_cast<QObject*>(new mindmap::NodeStyle()) << true; 0615 QTest::addRow("NodeStyleModel") << static_cast<QObject*>(new mindmap::NodeStyleModel()) << true; 0616 QTest::addRow("NonPlayableCharacter") << static_cast<QObject*>(new campaign::NonPlayableCharacter()) << true; 0617 QTest::addRow("NonPlayableCharacterModel")<< static_cast<QObject*>(new campaign::NonPlayableCharacterModel(nullptr)) << true; 0618 QTest::addRow("NoteContainer") << static_cast<QObject*>(new NoteContainer(new NoteController()))<< true ; 0619 QTest::addRow("NoteController") << static_cast<QObject*>(new NoteController()) << true; 0620 QTest::addRow("NotificationZone") << static_cast<QObject*>(new NotificationZone(new LogController(true))) << true; 0621 QTest::addRow("OOFormat") << static_cast<QObject*>(new OOFormat())<< true ; 0622 QTest::addRow("OOReader") << static_cast<QObject*>(new OOReader())<< true ; 0623 QTest::addRow("Overlay") << static_cast<QObject*>(new Overlay()) << true; 0624 QTest::addRow("PaletteModel") << static_cast<QObject*>(new PaletteModel()) << true; 0625 QTest::addRow("ParticipantModel") << static_cast<QObject*>(new ParticipantModel({}, nullptr)) << true; 0626 QTest::addRow("ParticipantsModel") << static_cast<QObject*>(new ParticipantsModel()) << true; 0627 QTest::addRow("ParticipantsPane") << static_cast<QObject*>(new ParticipantsPane(nullptr)) << true; 0628 QTest::addRow("PathController") << static_cast<QObject*>(new vmap::PathController({}, new VectorialMapController())) << true; 0629 QTest::addRow("PathControllerUpdater") << static_cast<QObject*>(new PathControllerUpdater()) << true; 0630 QTest::addRow("PathItem") << static_cast<QObject*>(new PathItem(nullptr)) << true; 0631 QTest::addRow("PatternModel") << static_cast<QObject*>(new PatternModel()) << true; 0632 QTest::addRow("PdfController") << static_cast<QObject*>(new PdfController()) << true; 0633 QTest::addRow("PdfManager") << static_cast<QObject*>(new PdfManager())<< true ; 0634 QTest::addRow("PdfViewer") << static_cast<QObject*>(new PdfViewer(nullptr)) << true; 0635 QTest::addRow("PersonDialog") << static_cast<QObject*>(new PersonDialog()) << true; 0636 QTest::addRow("Player") << static_cast<QObject*>(new Player()) << true; 0637 QTest::addRow("PlayerController") << static_cast<QObject*>(new PlayerController(nullptr)) << true; 0638 QTest::addRow("PlayerController2") << static_cast<QObject*>(new PlayerController(new NetworkController)) << true; 0639 QTest::addRow("PlayerModel") << static_cast<QObject*>(new PlayerModel()) << true; 0640 QTest::addRow("PlayerProxyModel") << static_cast<QObject*>(new PlayerProxyModel()) << true; 0641 QTest::addRow("PlayerWidget") << static_cast<QObject*>(new PlayerWidget(nullptr)) << true; 0642 QTest::addRow("PlayersPanel") << static_cast<QObject*>(new PlayersPanel(nullptr)) << true; 0643 QTest::addRow("PositionedItem") << static_cast<QObject*>(new mindmap::PositionedItem(mindmap::MindItem::LinkType))<< true ; 0644 QTest::addRow("PreferencesController") << static_cast<QObject*>(new PreferencesController()) << false; 0645 QTest::addRow("PreferencesDialog") << static_cast<QObject*>(new PreferencesDialog(new PreferencesController())) << true; 0646 QTest::addRow("PreferencesManager") << static_cast<QObject*>(new PreferencesManager("test_rolisteam", "test")) << true; 0647 QTest::addRow("PreventClosing") << static_cast<QObject*>(new PreventClosing(nullptr))<< true ; 0648 QTest::addRow("ProfileModel") << static_cast<QObject*>(new ProfileModel()) << true; 0649 QTest::addRow("ProxyStateModel") << static_cast<QObject*>(new ProxyStateModel(new CharacterStateModel()))<< true ; 0650 QTest::addRow("QmlGeneratorController") << static_cast<QObject*>(new QmlGeneratorController())<< true ; 0651 QTest::addRow("QmlHighlighter") << static_cast<QObject*>(new QmlHighlighter())<< true ; 0652 QTest::addRow("RGraphicsView") << static_cast<QObject*>(new RGraphicsView(nullptr)) << true; 0653 QTest::addRow("RServer") << static_cast<QObject*>(new RServer(params, true)) << true; 0654 QTest::addRow("RcseApplicationController") << static_cast<QObject*>(new RcseApplicationController())<< true ; 0655 QTest::addRow("RealSlider") << static_cast<QObject*>(new RealSlider()) << true; 0656 QTest::addRow("RectController") << static_cast<QObject*>(new vmap::RectController({}, new VectorialMapController())) << true; 0657 QTest::addRow("RectControllerUpdater") << static_cast<QObject*>(new RectControllerUpdater()) << true; 0658 QTest::addRow("RectItem") << static_cast<QObject*>(new RectItem(nullptr)) << true; 0659 QTest::addRow("RemoteLogController") << static_cast<QObject*>(new RemoteLogController()) << true; 0660 QTest::addRow("RemotePlayerModel") << static_cast<QObject*>(new RemotePlayerModel(nullptr)) << true; 0661 QTest::addRow("RichTextEditDialog") << static_cast<QObject*>(new RichTextEditDialog()) << true; 0662 QTest::addRow("RichTextEditDialog") << static_cast<QObject*>(new RichTextEditDialog()) << true; 0663 char param[12]={"tst_qobject"}; 0664 char* argv[1]={param}; 0665 int count = 1; 0666 QTest::addRow("RolisteamDaemon") << static_cast<QObject*>(new RolisteamDaemon())<< true ; 0667 QTest::addRow("RolisteamImageProvider") << static_cast<QObject*>(new RolisteamImageProvider(new charactersheet::ImageModel())) << true; 0668 QTest::addRow("RolisteamMimeData") << static_cast<QObject*>(new RolisteamMimeData()) << true; 0669 QTest::addRow("RuleItem") << static_cast<QObject*>(new RuleItem(nullptr)) << true; 0670 QTest::addRow("SaturationChooser") << static_cast<QObject*>(new SaturationChooser()) << true; 0671 QTest::addRow("Section") << static_cast<QObject*>(new Section()) << true; 0672 QTest::addRow("SelectConnProfileController") << static_cast<QObject*>(profileCtrl) << true; 0673 QTest::addRow("SelectConnectionProfileDialog") << static_cast<QObject*>(new SelectConnectionProfileDialog(nullptr)) << true; 0674 QTest::addRow("SelectionController") << static_cast<QObject*>(new mindmap::SelectionController()) << true; 0675 QTest::addRow("ServerConnection") << static_cast<QObject*>(new ServerConnection(nullptr)) << true; 0676 QTest::addRow("ServerConnectionManager") << static_cast<QObject*>(new ServerConnectionManager(params)) << true; 0677 QTest::addRow("ServerManagerUpdater") << static_cast<QObject*>(new ServerManagerUpdater(new ServerConnectionManager(params), true)) << true; 0678 QTest::addRow("ServerManagerUpdater") << static_cast<QObject*>(new ServerManagerUpdater(nullptr, true)) << true; 0679 QTest::addRow("SessionItemModel") << static_cast<QObject*>(new session::SessionItemModel()) << true; 0680 QTest::addRow("SharedNote") << static_cast<QObject*>(new SharedNote(nullptr)) << true; 0681 QTest::addRow("SharedNoteContainer") << static_cast<QObject*>(new SharedNoteContainer(nullptr)) << true; 0682 QTest::addRow("SharedNoteController") << static_cast<QObject*>(new SharedNoteController()) << true; 0683 QTest::addRow("SharedNoteControllerUpdater") << static_cast<QObject*>(new SharedNoteControllerUpdater(nullptr, nullptr)) << true; 0684 auto sheetCtrl = new SheetController(); 0685 sheetCtrl->setAppCtrl(new RcseApplicationController()); 0686 sheetCtrl->setPageMax(100); 0687 QTest::addRow("SheetController") << static_cast<QObject*>(sheetCtrl)<< true ; 0688 QTest::addRow("SheetProperties") << static_cast<QObject*>(new SheetProperties(new QmlGeneratorController()))<< true ; 0689 QTest::addRow("SheetWidget") << static_cast<QObject*>(new SheetWidget()) << true; 0690 QTest::addRow("ShortCutEditorDialog") << static_cast<QObject*>(new ShortCutEditorDialog()) << true; 0691 QTest::addRow("ShortCutModel") << static_cast<QObject*>(new ShortCutModel()) << true; 0692 QTest::addRow("ShortcutVisitor") << static_cast<QObject*>(new ShortcutVisitor()) << true; 0693 auto sideMenuController = new mindmap::SideMenuController(); 0694 sideMenuController->setController(new MindMapController(Helper::randomString())); 0695 QTest::addRow("SideMenuController") << static_cast<QObject*>(sideMenuController)<< true ; 0696 QTest::addRow("SightController") << static_cast<QObject*>(new vmap::SightController(new VectorialMapController())) << true; 0697 QTest::addRow("SightItem") << static_cast<QObject*>(new SightItem(nullptr)) << true; 0698 QTest::addRow("SingleContentTypeModel") << static_cast<QObject*>(new SingleContentTypeModel(Core::ContentType::VECTORIALMAP)) << true; 0699 QTest::addRow("SliderController") << static_cast<QObject*>(new SliderController())<< true ; 0700 QTest::addRow("SpacingController") << static_cast<QObject*>(new mindmap::SpacingController(ctrl, nullptr)) << true; 0701 QTest::addRow("StateDelegate") << static_cast<QObject*>(new StateDelegate(new CharacterStateModel()))<< true ; 0702 QTest::addRow("StateModel") << static_cast<QObject*>(new StateModel())<< true ; 0703 QTest::addRow("StyleSheet") << static_cast<QObject*>(new customization::StyleSheet(nullptr)) << true; 0704 QTest::addRow("TableCanvasField") << static_cast<QObject*>(new TableCanvasField(new FieldController()))<< true ; 0705 QTest::addRow("TableField") << static_cast<QObject*>(new TableField()) << true; 0706 QTest::addRow("TagListDelegate") << static_cast<QObject*>(new TagListDelegate()) << true; 0707 QTest::addRow("TextController") << static_cast<QObject*>(new vmap::TextController({}, new VectorialMapController())) << true; 0708 QTest::addRow("TextControllerUpdater") << static_cast<QObject*>(new TextControllerUpdater()) << true; 0709 QTest::addRow("TextEdit") << static_cast<QObject*>(new TextEdit(new NoteController()))<< true ; 0710 QTest::addRow("TextItem") << static_cast<QObject*>(new TextItem(nullptr)) << true; 0711 QTest::addRow("TextLabel") << static_cast<QObject*>(new TextLabel()) << true; 0712 QTest::addRow("TextLabel") << static_cast<QObject*>(new TextLabel(nullptr)) << true; 0713 QTest::addRow("TextMessage") << static_cast<QObject*>(new InstantMessaging::TextMessage({}, {}, {})) << true; 0714 QTest::addRow("TextWriterController") << static_cast<QObject*>(new InstantMessaging::TextWriterController()) << true; 0715 QTest::addRow("Theme") << static_cast<QObject*>(new customization::Theme()) << true; 0716 QTest::addRow("ThemeModel") << static_cast<QObject*>(new ThemeModel()) << true; 0717 QTest::addRow("TipChecker") << static_cast<QObject*>(new TipChecker()) << true; 0718 QTest::addRow("TipOfDayViewer") << static_cast<QObject*>(new TipOfDayViewer({}, {}, {})) << true; 0719 QTest::addRow("ToolBox") << static_cast<QObject*>(new ToolBox(nullptr)) << true; 0720 QTest::addRow("UnitModel obj") << static_cast<QObject*>(new GMTOOL::UnitModel()) << true; 0721 QTest::addRow("UpdateChecker") << static_cast<QObject*>(new UpdateChecker({})) << true; 0722 QTest::addRow("UpdaterWindow") << static_cast<QObject*>(new UpdaterWindow()) << true; 0723 QTest::addRow("UpnpNat") << static_cast<QObject*>(new UpnpNat())<< true ; 0724 QTest::addRow("UserListDelegate") << static_cast<QObject*>(new UserListDelegate()) << true; 0725 QTest::addRow("UserListView") << static_cast<QObject*>(new UserListView()) << true; 0726 QTest::addRow("VColorLabel") << static_cast<QObject*>(new VColorLabel()) << true; 0727 QTest::addRow("VColorSelector") << static_cast<QObject*>(new VColorSelector()) << true; 0728 QTest::addRow("VMap") << static_cast<QObject*>(new VMap(new VectorialMapController())) << true; 0729 QTest::addRow("VMapFrame") << static_cast<QObject*>(new VMapFrame(nullptr)) << true; 0730 QTest::addRow("VMapItemControllerUpdater") << static_cast<QObject*>(new VMapItemControllerUpdater()) << true; 0731 QTest::addRow("VMapUpdater") << static_cast<QObject*>(new VMapUpdater(nullptr, nullptr)) << true; 0732 QTest::addRow("VectorialMapController") << static_cast<QObject*>(new VectorialMapController()) << true; 0733 QTest::addRow("VmapItemModel") << static_cast<QObject*>(new vmap::VmapItemModel()) << true; 0734 QTest::addRow("VmapTopBar") << static_cast<QObject*>(new VmapTopBar(nullptr)) << true; 0735 QTest::addRow("WebView") << static_cast<QObject*>(new WebView(nullptr)) << true; 0736 QTest::addRow("WebViewUpdater") << static_cast<QObject*>(new WebViewUpdater(nullptr)) << true; 0737 QTest::addRow("WebpageController") << static_cast<QObject*>(new WebpageController()) << true; 0738 QTest::addRow("Workspace") << static_cast<QObject*>(new Workspace(nullptr, nullptr, nullptr)) << true; 0739 QTest::addRow("XMLTextEdit") << static_cast<QObject*>(new XMLTextEdit())<< true ; 0740 //QTest::addRow("RolisteamApplication") << static_cast<QObject*>(new RolisteamApplication(Helper::randomString(),Helper::randomString(), count, argv))<< true ; 0741 // clang-format off 0742 } 0743 0744 QTEST_MAIN(QObjectsTest) 0745 0746 #include "tst_qobjects.moc"