author | cniehaus <cniehaus> | 2002-12-29 17:27:46 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-12-29 17:27:46 (UTC) |
commit | 8f6559d4be4e0b1857c4ae5cdbf1ad8b485b638b (patch) (unidiff) | |
tree | a403e69a0778a02f326976a41de86e1ca176ecee /noncore/apps/odict/searchmethoddlg.cpp | |
parent | f9308849c8257f3d2e4bec0d476f56f87935cdab (diff) | |
download | opie-8f6559d4be4e0b1857c4ae5cdbf1ad8b485b638b.zip opie-8f6559d4be4e0b1857c4ae5cdbf1ad8b485b638b.tar.gz opie-8f6559d4be4e0b1857c4ae5cdbf1ad8b485b638b.tar.bz2 |
probably the last commit for today
some more things working, still a lot missing
Diffstat (limited to 'noncore/apps/odict/searchmethoddlg.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/odict/searchmethoddlg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/odict/searchmethoddlg.cpp b/noncore/apps/odict/searchmethoddlg.cpp index fcbdb8a..203c663 100644 --- a/noncore/apps/odict/searchmethoddlg.cpp +++ b/noncore/apps/odict/searchmethoddlg.cpp | |||
@@ -77,13 +77,13 @@ SearchMethodDlg::SearchMethodDlg(QWidget *parent, const char *name, bool modal, | |||
77 | } | 77 | } |
78 | } | 78 | } |
79 | 79 | ||
80 | void SearchMethodDlg::setupEntries( QString item ) | 80 | void SearchMethodDlg::setupEntries( QString item ) |
81 | { | 81 | { |
82 | Config cfg( "odict" ); | 82 | Config cfg( "odict" ); |
83 | cfg.setGroup( itemName ); | 83 | cfg.setGroup( "Method_"+itemName ); |
84 | trenner->setText( cfg.readEntry( "Seperator" ) ); | 84 | trenner->setText( cfg.readEntry( "Seperator" ) ); |
85 | lang1->setText( cfg.readEntry( "Lang1" ) ); | 85 | lang1->setText( cfg.readEntry( "Lang1" ) ); |
86 | lang2->setText( cfg.readEntry( "Lang2" ) ); | 86 | lang2->setText( cfg.readEntry( "Lang2" ) ); |
87 | nameLE->setText( itemName ); | 87 | nameLE->setText( itemName ); |
88 | dictFileLE->setText( cfg.readEntry( "file" ) ); | 88 | dictFileLE->setText( cfg.readEntry( "file" ) ); |
89 | } | 89 | } |
@@ -95,13 +95,13 @@ void SearchMethodDlg::slotBrowse() | |||
95 | } | 95 | } |
96 | 96 | ||
97 | void SearchMethodDlg::saveItem() | 97 | void SearchMethodDlg::saveItem() |
98 | { | 98 | { |
99 | QString name = nameLE->text(); | 99 | QString name = nameLE->text(); |
100 | Config cfg( "odict" ); | 100 | Config cfg( "odict" ); |
101 | cfg.setGroup( name ); | 101 | cfg.setGroup( "Method_"+name ); |
102 | cfg.writeEntry( "Name", name ); | 102 | cfg.writeEntry( "Name", name ); |
103 | cfg.writeEntry( "Seperator", trenner->text() ); | 103 | cfg.writeEntry( "Seperator", trenner->text() ); |
104 | cfg.writeEntry( "Lang1", lang1->text() ); | 104 | cfg.writeEntry( "Lang1", lang1->text() ); |
105 | cfg.writeEntry( "Lang2", lang2->text() ); | 105 | cfg.writeEntry( "Lang2", lang2->text() ); |
106 | cfg.writeEntry( "file", dictFileLE->text() ); | 106 | cfg.writeEntry( "file", dictFileLE->text() ); |
107 | } | 107 | } |