mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Fix warning about QSettings: now QSettings use native format for windows osx and other unix. See Qt documentation for more information.
http://doc.qt.io/qt-5/qsettings.html#details git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4206 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -359,8 +359,10 @@ void DiagramView::zoomIn() {
|
||||
* If zoom-out-beyond-of-folio is true in common setting, the zoom out is infinite
|
||||
* else zoom out is stopped when the entire folio is visible.
|
||||
*/
|
||||
void DiagramView::zoomOut() {
|
||||
if (QETApp::settings().value("diagrameditor/zoom-out-beyond-of-folio", false).toBool() ||
|
||||
void DiagramView::zoomOut()
|
||||
{
|
||||
QSettings settings;
|
||||
if (settings.value("diagrameditor/zoom-out-beyond-of-folio", false).toBool() ||
|
||||
(horizontalScrollBar()->maximum() || verticalScrollBar()->maximum()) )
|
||||
scale(0.85, 0.85);
|
||||
|
||||
@@ -380,8 +382,10 @@ void DiagramView::zoomInSlowly() {
|
||||
* @brief DiagramView::zoomOutSlowly
|
||||
* Like zoomOut but more slowly
|
||||
*/
|
||||
void DiagramView::zoomOutSlowly() {
|
||||
if (QETApp::settings().value("diagrameditor/zoom-out-beyond-of-folio", false).toBool() ||
|
||||
void DiagramView::zoomOutSlowly()
|
||||
{
|
||||
QSettings settings;
|
||||
if (settings.value("diagrameditor/zoom-out-beyond-of-folio", false).toBool() ||
|
||||
(horizontalScrollBar()->maximum() || verticalScrollBar()->maximum()) )
|
||||
scale(0.98, 0.98);
|
||||
|
||||
@@ -555,8 +559,10 @@ void DiagramView::mouseReleaseEvent(QMouseEvent *e) {
|
||||
* @brief DiagramView::gestures
|
||||
* @return
|
||||
*/
|
||||
bool DiagramView::gestures() const {
|
||||
return(QETApp::settings().value("diagramview/gestures", false).toBool());
|
||||
bool DiagramView::gestures() const
|
||||
{
|
||||
QSettings settings;
|
||||
return(settings.value("diagramview/gestures", false).toBool());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user