]> git.lyx.org Git - features.git/commitdiff
less string conversions
authorAndré Pönitz <poenitz@gmx.net>
Sun, 18 Nov 2007 10:14:43 +0000 (10:14 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Sun, 18 Nov 2007 10:14:43 +0000 (10:14 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21663 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiParagraph.h

index 91ca849ecca8384bf0a0520d9ce988bbea6c4486..310345dbb192a5536cb19cce8d417781aa9d4cc7 100644 (file)
@@ -93,21 +93,21 @@ private:
        std::string name() const { return "paragraph"; }
 
 private:
-       std::string name_;
+       QString name_;
 
        void showEvent(QShowEvent * e)
        {
                QSettings settings;
-               std::string key = name_ + "/geometry";
-               QDialog::restoreGeometry(settings.value(key.c_str()).toByteArray());
+               QString key = name_ + "/geometry";
+               QDialog::restoreGeometry(settings.value(key).toByteArray());
            QDialog::showEvent(e);
        }
 
        void closeEvent(QCloseEvent * e)
        {
                QSettings settings;
-               std::string key = name_ + "/geometry";
-               settings.setValue(key.c_str(), QDialog::saveGeometry());
+               QString key = name_ + "/geometry";
+               settings.setValue(key, QDialog::saveGeometry());
                QDialog::closeEvent(e);
        }