MCPcopy Create free account
hub / github.com/Simsys/qhexedit2 / init

Method init

example/mainwindow.cpp:208–234  ·  view source on GitHub ↗

/ Private Methods */ /

Source from the content-addressed store, hash-verified

206/* Private Methods */
207/*****************************************************************************/
208void MainWindow::init()
209{
210 QApplication::setStyle(QStyleFactory::create("Fusion"));
211 hexEdit = new QHexEdit(this);
212 setCentralWidget(hexEdit);
213 readSettings();
214 writeSettings(); // Write settings during first run
215
216 setAttribute(Qt::WA_DeleteOnClose);
217 isUntitled = true;
218 isModified = false;
219
220 optionsDialog = new OptionsDialog(this);
221 connect(optionsDialog, SIGNAL(accepted()), this, SLOT(optionsAccepted()));
222
223 searchDialog = new SearchDialog(hexEdit, this);
224
225 createActions();
226 createMenus();
227 createToolBars();
228 createStatusBar();
229
230 setUnifiedTitleAndToolBarOnMac(true);
231
232 connect(hexEdit, SIGNAL(overwriteModeChanged(bool)), this, SLOT(setOverwriteMode(bool)));
233 connect(hexEdit, SIGNAL(dataChanged()), this, SLOT(dataChanged()));
234}
235
236void MainWindow::createActions()
237{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected