|
a/src/qtgui/confgui/confgui.cpp |
|
b/src/qtgui/confgui/confgui.cpp |
|
... |
|
... |
38 |
#include <qstringlist.h>
|
38 |
#include <qstringlist.h>
|
39 |
#include <qcombobox.h>
|
39 |
#include <qcombobox.h>
|
40 |
|
40 |
|
41 |
#include "confgui.h"
|
41 |
#include "confgui.h"
|
42 |
#include "smallut.h"
|
42 |
#include "smallut.h"
|
43 |
#include "debuglog.h"
|
43 |
#include "log.h"
|
44 |
#include "rcldb.h"
|
44 |
#include "rcldb.h"
|
45 |
#include "guiutils.h"
|
45 |
#include "guiutils.h"
|
46 |
|
46 |
|
47 |
#include <list>
|
47 |
#include <list>
|
48 |
#include <vector>
|
48 |
#include <vector>
|
|
... |
|
... |
374 |
}
|
374 |
}
|
375 |
|
375 |
|
376 |
void ConfParamSLW::listToConf()
|
376 |
void ConfParamSLW::listToConf()
|
377 |
{
|
377 |
{
|
378 |
list<string> ls;
|
378 |
list<string> ls;
|
379 |
LOGDEB2(("ConfParamSLW::listToConf. m_fsencoding %d\n", int(m_fsencoding)));
|
379 |
LOGDEB2("ConfParamSLW::listToConf. m_fsencoding " << (int(m_fsencoding)) << "\n" );
|
380 |
for (int i = 0; i < m_lb->count(); i++) {
|
380 |
for (int i = 0; i < m_lb->count(); i++) {
|
381 |
// General parameters are encoded as utf-8. File names as
|
381 |
// General parameters are encoded as utf-8. File names as
|
382 |
// local8bit There is no hope for 8bit file names anyway
|
382 |
// local8bit There is no hope for 8bit file names anyway
|
383 |
// except for luck: the original encoding is unknown.
|
383 |
// except for luck: the original encoding is unknown.
|
384 |
// As a special Windows hack, if fsencoding is set, we convert
|
384 |
// As a special Windows hack, if fsencoding is set, we convert
|
|
... |
|
... |
421 |
idxes.push_back(i);
|
421 |
idxes.push_back(i);
|
422 |
}
|
422 |
}
|
423 |
}
|
423 |
}
|
424 |
for (vector<int>::reverse_iterator it = idxes.rbegin();
|
424 |
for (vector<int>::reverse_iterator it = idxes.rbegin();
|
425 |
it != idxes.rend(); it++) {
|
425 |
it != idxes.rend(); it++) {
|
426 |
LOGDEB0(("deleteSelected: %d was selected\n", *it));
|
426 |
LOGDEB0("deleteSelected: " << (*it) << " was selected\n" );
|
427 |
QListWidgetItem *item = m_lb->takeItem(*it);
|
427 |
QListWidgetItem *item = m_lb->takeItem(*it);
|
428 |
emit entryDeleted(item->text());
|
428 |
emit entryDeleted(item->text());
|
429 |
delete item;
|
429 |
delete item;
|
430 |
}
|
430 |
}
|
431 |
|
431 |
|
|
... |
|
... |
474 |
}
|
474 |
}
|
475 |
}
|
475 |
}
|
476 |
}
|
476 |
}
|
477 |
|
477 |
|
478 |
} // Namespace confgui
|
478 |
} // Namespace confgui
|
|
|
479 |
|