From d56ca40884f360924654e81ac02bd88c7895495c Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Fri, 22 Jul 2016 18:10:26 +1000 Subject: [PATCH] Make filename in project properties a readonly line edit (Because it's nice to be able to copy the project path easily) --- src/app/qgsprojectproperties.cpp | 2 +- src/ui/qgsprojectpropertiesbase.ui | 109 +++++++++++++---------------- 2 files changed, 51 insertions(+), 60 deletions(-) diff --git a/src/app/qgsprojectproperties.cpp b/src/app/qgsprojectproperties.cpp index 05b68bb9d40..5beba5fb13a 100644 --- a/src/app/qgsprojectproperties.cpp +++ b/src/app/qgsprojectproperties.cpp @@ -154,7 +154,7 @@ QgsProjectProperties::QgsProjectProperties( QgsMapCanvas* mapCanvas, QWidget *pa mAutoTransaction->setChecked( QgsProject::instance()->autoTransaction() ); title( QgsProject::instance()->title() ); - projectFileName->setText( QgsProject::instance()->fileName() ); + mProjectFileLineEdit->setText( QgsProject::instance()->fileName() ); // get the manner in which the number of decimal places in the mouse // position display is set (manual or automatic) diff --git a/src/ui/qgsprojectpropertiesbase.ui b/src/ui/qgsprojectpropertiesbase.ui index a4cce5dfe17..2c3bb5ee6b8 100644 --- a/src/ui/qgsprojectpropertiesbase.ui +++ b/src/ui/qgsprojectpropertiesbase.ui @@ -227,7 +227,7 @@ - 7 + 0 @@ -256,8 +256,8 @@ 0 0 - 565 - 685 + 683 + 779 @@ -276,7 +276,7 @@ projgeneral - + @@ -363,32 +363,6 @@ - - - - - 0 - 0 - - - - Save paths - - - cbxAbsolutePath - - - - - - - Descriptive project name - - - Default project title - - - @@ -400,9 +374,6 @@ Project title - - projectFileName - @@ -421,23 +392,7 @@ - - - - - 0 - 0 - - - - Project title - - - titleEdit - - - - + Qt::Horizontal @@ -464,7 +419,23 @@ - + + + + + 0 + 0 + + + + Save paths + + + cbxAbsolutePath + + + + Checking this setting avoids visible edge artifacts when rendering this project as separate map tiles. Rendering performance will be degraded. @@ -474,6 +445,23 @@ + + + + Descriptive project name + + + Default project title + + + + + + + true + + + @@ -758,8 +746,8 @@ 0 0 - 294 - 59 + 368 + 46 @@ -903,8 +891,8 @@ 0 0 - 676 - 764 + 379 + 564 @@ -1370,8 +1358,8 @@ 0 0 - 676 - 2317 + 663 + 2249 @@ -2436,8 +2424,8 @@ 0 0 - 676 - 764 + 168 + 46 @@ -2620,6 +2608,7 @@ mOptionsListWidget scrollArea_2 + mProjectFileLineEdit titleEdit pbnSelectionColor pbnCanvasColor @@ -2723,6 +2712,8 @@ mWMSInspireMetadataUrlType pbnLaunchOWSChecker teOWSChecker + mAutoTransaction + mEvaluateDefaultValues