src/dialogs.cpp

changeset 941
f895379d7fab
parent 931
85080f7a1c20
equal deleted inserted replaced
940:edc716c1d8e1 941:f895379d7fab
90 void OverlayDialog::fillDefaults (int newcam) 90 void OverlayDialog::fillDefaults (int newcam)
91 { 91 {
92 LDGLOverlay& info = g_win->R()->getOverlay (newcam); 92 LDGLOverlay& info = g_win->R()->getOverlay (newcam);
93 RadioDefault<int> (newcam, m_cameraArgs); 93 RadioDefault<int> (newcam, m_cameraArgs);
94 94
95 if (info.img != null) 95 if (info.img != nullptr)
96 { 96 {
97 ui->filename->setText (info.fname); 97 ui->filename->setText (info.fname);
98 ui->originX->setValue (info.ox); 98 ui->originX->setValue (info.ox);
99 ui->originY->setValue (info.oy); 99 ui->originY->setValue (info.oy);
100 ui->width->setValue (info.lw); 100 ui->width->setValue (info.lw);
142 return RadioSwitch<int> (ETopCamera, m_cameraArgs); 142 return RadioSwitch<int> (ETopCamera, m_cameraArgs);
143 } 143 }
144 144
145 void OverlayDialog::slot_fpath() 145 void OverlayDialog::slot_fpath()
146 { 146 {
147 ui->filename->setText (QFileDialog::getOpenFileName (null, "Overlay image")); 147 ui->filename->setText (QFileDialog::getOpenFileName (nullptr, "Overlay image"));
148 } 148 }
149 149
150 void OverlayDialog::slot_help() 150 void OverlayDialog::slot_help()
151 { 151 {
152 showDocumentation (g_docs_overlays); 152 showDocumentation (g_docs_overlays);
324 324
325 // ============================================================================= 325 // =============================================================================
326 // ============================================================================= 326 // =============================================================================
327 void ExtProgPathPrompt::findPath() 327 void ExtProgPathPrompt::findPath()
328 { 328 {
329 QString path = QFileDialog::getOpenFileName (null, "", "", g_extProgPathFilter); 329 QString path = QFileDialog::getOpenFileName (nullptr, "", "", g_extProgPathFilter);
330 330
331 if (not path.isEmpty()) 331 if (not path.isEmpty())
332 ui->m_path->setText (path); 332 ui->m_path->setText (path);
333 } 333 }
334 334

mercurial