mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 09:40:52 +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:
@@ -399,8 +399,10 @@ void ElementView::mouseReleaseEvent(QMouseEvent *e) {
|
||||
* @brief ElementView::gestures
|
||||
* @return
|
||||
*/
|
||||
bool ElementView::gestures() const {
|
||||
return(QETApp::settings().value("diagramview/gestures", false).toBool());
|
||||
bool ElementView::gestures() const
|
||||
{
|
||||
QSettings settings;
|
||||
return(settings.value("diagramview/gestures", false).toBool());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user