@@ -1117,7 +1117,15 @@ QC_MDIWindow* QC_ApplicationWindow::slotFileNew(RS_Document* doc) {
1117
1117
}
1118
1118
1119
1119
// check for draft mode
1120
- updateWindowTitle (w);
1120
+
1121
+ if (settings.value (" Appearance/DraftMode" , 0 ).toBool ())
1122
+ {
1123
+ QString draft_string = " [" +tr (" Draft Mode" )+" ]" ;
1124
+ w->getGraphicView ()->setDraftMode (true );
1125
+ QString title = w->windowTitle ();
1126
+ w->setWindowTitle (title + draft_string);
1127
+ }
1128
+
1121
1129
w->setWindowIcon (QIcon (" :/main/document.png" ));
1122
1130
1123
1131
// only graphics offer block lists, blocks don't
@@ -1385,6 +1393,8 @@ void QC_ApplicationWindow::
1385
1393
{
1386
1394
RS_DEBUG->print (" QC_ApplicationWindow::slotFileOpen(..)" );
1387
1395
1396
+ QSettings settings;
1397
+
1388
1398
QApplication::setOverrideCursor ( QCursor (Qt::WaitCursor) );
1389
1399
1390
1400
if ( QFileInfo (fileName).exists ())
@@ -1483,7 +1493,14 @@ void QC_ApplicationWindow::
1483
1493
/* Format and set caption.
1484
1494
* ----------------------- */
1485
1495
w->setWindowTitle (format_filename_caption (fileName));
1486
- updateWindowTitle (w);
1496
+ if (settings.value (" Appearance/DraftMode" , 0 ).toBool ())
1497
+ {
1498
+ QString draft_string = " [" +tr (" Draft Mode" )+" ]" ;
1499
+ w->getGraphicView ()->setDraftMode (true );
1500
+ w->getGraphicView ()->redraw ();
1501
+ QString title = w->windowTitle ();
1502
+ w->setWindowTitle (title + draft_string);
1503
+ }
1487
1504
1488
1505
RS_DEBUG->print (" QC_ApplicationWindow::slotFileOpen: set caption: OK" );
1489
1506
0 commit comments