projects
/
mdictionary
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5492ca6
)
code clean
master
author
Marcin Kaźmierczak
<marcin@marcin-desktop.(none)>
Tue, 1 Mar 2011 10:25:30 +0000
(11:25 +0100)
committer
Marcin Kaźmierczak
<marcin@marcin-desktop.(none)>
Tue, 1 Mar 2011 10:25:30 +0000
(11:25 +0100)
13 files changed:
src/mdictionary/backbone/backbone.h
patch
|
blob
|
history
src/mdictionary/gui/SettingsWidget.cpp
patch
|
blob
|
history
src/mdictionary/qml/GoogleDialog.qml
patch
|
blob
|
history
src/mdictionary/qml/IconButton.qml
patch
|
blob
|
history
src/mdictionary/qml/SearchBarWidget.qml
patch
|
blob
|
history
src/mdictionary/qml/StarDictDialog.qml
patch
|
blob
|
history
src/plugins/google/GooglePlugin.cpp
patch
|
blob
|
history
src/plugins/stardict/StarDialog.cpp
patch
|
blob
|
history
src/plugins/stardict/StarDictPlugin.cpp
patch
|
blob
|
history
src/plugins/xdxf/DictsListModel.cpp
patch
|
blob
|
history
src/plugins/xdxf/XdxfDialog.cpp
patch
|
blob
|
history
src/plugins/xdxf/XdxfDictDownloadProgressDialog.cpp
patch
|
blob
|
history
src/plugins/xdxf/XdxfDictDownloader.cpp
patch
|
blob
|
history
diff --git
a/src/mdictionary/backbone/backbone.h
b/src/mdictionary/backbone/backbone.h
index
f59bc3d
..
4b9ecec
100644
(file)
--- a/
src/mdictionary/backbone/backbone.h
+++ b/
src/mdictionary/backbone/backbone.h
@@
-231,7
+231,6
@@
public Q_SLOTS:
_bookmarkSearchWatcher.setFuture(_innerBookmarks);
Q_EMIT bookmarkMode();
_bookmarkSearchWatcher.setFuture(_innerBookmarks);
Q_EMIT bookmarkMode();
- qDebug()<<"1";
}
/*! Sets settings for backbone: history_size, search_limit,
}
/*! Sets settings for backbone: history_size, search_limit,
diff --git
a/src/mdictionary/gui/SettingsWidget.cpp
b/src/mdictionary/gui/SettingsWidget.cpp
index
bb070f2
..
4c37017
100644
(file)
--- a/
src/mdictionary/gui/SettingsWidget.cpp
+++ b/
src/mdictionary/gui/SettingsWidget.cpp
@@
-321,7
+321,6
@@
void SettingsWidget::changed() {
#ifndef Q_WS_MAEMO_5
void SettingsWidget::save() {
_save = true;
#ifndef Q_WS_MAEMO_5
void SettingsWidget::save() {
_save = true;
- qDebug()<<"tuuu";
hide();
}
#endif
hide();
}
#endif
diff --git
a/src/mdictionary/qml/GoogleDialog.qml
b/src/mdictionary/qml/GoogleDialog.qml
index
77fef8d
..
c41a87d
100644
(file)
--- a/
src/mdictionary/qml/GoogleDialog.qml
+++ b/
src/mdictionary/qml/GoogleDialog.qml
@@
-33,10
+33,10
@@
Rectangle{
function setFocus(){
if(focusIndex==0){
function setFocus(){
if(focusIndex==0){
- console.log("01");
+ comboFrom.focus = true;
}
if(focusIndex==1){
}
if(focusIndex==1){
- console.log("02");
+ comboTo.focus = true;
}
if(focusIndex==2){
revertButton.focus = true
}
if(focusIndex==2){
revertButton.focus = true
diff --git
a/src/mdictionary/qml/IconButton.qml
b/src/mdictionary/qml/IconButton.qml
index
4ac2ee7
..
e6e5f37
100644
(file)
--- a/
src/mdictionary/qml/IconButton.qml
+++ b/
src/mdictionary/qml/IconButton.qml
@@
-13,7
+13,7
@@
Rectangle {
radius: 50
Keys.onReturnPressed: {
radius: 50
Keys.onReturnPressed: {
- button.clicked();
+ rectangle.clicked();
}
MouseArea {
}
MouseArea {
diff --git
a/src/mdictionary/qml/SearchBarWidget.qml
b/src/mdictionary/qml/SearchBarWidget.qml
index
40d33e6
..
6590e45
100644
(file)
--- a/
src/mdictionary/qml/SearchBarWidget.qml
+++ b/
src/mdictionary/qml/SearchBarWidget.qml
@@
-20,7
+20,6
@@
Rectangle {
function setCompleterText(string) { inputSearchText.setCompleter(string) }
function setFocus(){
function setCompleterText(string) { inputSearchText.setCompleter(string) }
function setFocus(){
- console.log("setFocus");
if(focusIndex==0){
inputSearchText.setFocus();
if(!inputSearchText.enabled)
if(focusIndex==0){
inputSearchText.setFocus();
if(!inputSearchText.enabled)
diff --git
a/src/mdictionary/qml/StarDictDialog.qml
b/src/mdictionary/qml/StarDictDialog.qml
index
b2e75db
..
b1efd50
100644
(file)
--- a/
src/mdictionary/qml/StarDictDialog.qml
+++ b/
src/mdictionary/qml/StarDictDialog.qml
@@
-50,7
+50,6
@@
Rectangle{
onHeightChanged:{
heightChange((newPlugin ? textPath.height+50 : textInfo.height+50));
onHeightChanged:{
heightChange((newPlugin ? textPath.height+50 : textInfo.height+50));
- //console.log( "debug" + (newPlugin ? textPath.paintedHeight+55 : textInfo.paintedHeight+55));
}
SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
}
SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
diff --git
a/src/plugins/google/GooglePlugin.cpp
b/src/plugins/google/GooglePlugin.cpp
index
733a51f
..
3c3ff11
100644
(file)
--- a/
src/plugins/google/GooglePlugin.cpp
+++ b/
src/plugins/google/GooglePlugin.cpp
@@
-218,7
+218,6
@@
QList<Translation*> GooglePlugin::searchWordList(QString word, int ) {
}
QString text = QString::fromUtf8(http->readAll());
}
QString text = QString::fromUtf8(http->readAll());
-// qDebug()<<"google test"<<text;
text=jsonParse(text);
if(text!="") {
text="<key>" + word + "</key>" + "<t>" + text + "</t>";
text=jsonParse(text);
if(text!="") {
text="<key>" + word + "</key>" + "<t>" + text + "</t>";
diff --git
a/src/plugins/stardict/StarDialog.cpp
b/src/plugins/stardict/StarDialog.cpp
index
fcfa6be
..
baf11d3
100644
(file)
--- a/
src/plugins/stardict/StarDialog.cpp
+++ b/
src/plugins/stardict/StarDialog.cpp
@@
-205,8
+205,6
@@
void StarDialog::selectFile() {
else
_isCompressed = false;
#ifndef Q_WS_MAEMO_5
else
_isCompressed = false;
#ifndef Q_WS_MAEMO_5
- // qDebug()<<"hint"<<view->sizeHint();
- // qDebug()<<"size"<<view->size();
resize(view->sizeHint());
#else
resize(view->sizeHint());
#else
diff --git
a/src/plugins/stardict/StarDictPlugin.cpp
b/src/plugins/stardict/StarDictPlugin.cpp
index
229cff4
..
a6b3c9f
100644
(file)
--- a/
src/plugins/stardict/StarDictPlugin.cpp
+++ b/
src/plugins/stardict/StarDictPlugin.cpp
@@
-132,7
+132,6
@@
QList<Translation*> StarDictPlugin::searchWordList(QString word, int limit) {
if(keyword.exactMatch(fkey) ) {
TranslationStarDict tran(fkey, infoNote(), this);
if(keyword.exactMatch(fkey) ) {
TranslationStarDict tran(fkey, infoNote(), this);
- // qDebug() << "off/len" << offset << len;
int id = translations.indexOf(tran);
if(id == -1) {
tran.add(offset, len);
int id = translations.indexOf(tran);
if(id == -1) {
tran.add(offset, len);
@@
-168,7
+167,6
@@
QByteArray StarDictPlugin::read(QByteArray::iterator it,
QString StarDictPlugin::interpret(QByteArray::iterator it,
QByteArray::iterator end, QChar mode,QString key, bool) {
QString result;
QString StarDictPlugin::interpret(QByteArray::iterator it,
QByteArray::iterator end, QChar mode,QString key, bool) {
QString result;
-// qDebug()<<"****** mode: "<<mode;
if(mode == 'm'
|| mode == 'l'
|| mode == 'g'
if(mode == 'm'
|| mode == 'l'
|| mode == 'g'
diff --git
a/src/plugins/xdxf/DictsListModel.cpp
b/src/plugins/xdxf/DictsListModel.cpp
index
f4b5b99
..
765ad87
100644
(file)
--- a/
src/plugins/xdxf/DictsListModel.cpp
+++ b/
src/plugins/xdxf/DictsListModel.cpp
@@
-54,7
+54,6
@@
QVariant DictsListModel::data(const QModelIndex & index, int role) const {
QVariant DictsListModel::headerData(int section, Qt::Orientation orientation, int role) const{
QVariant DictsListModel::headerData(int section, Qt::Orientation orientation, int role) const{
- qDebug()<<"tu jestem"<< role;
if (role == FromRole){
return "From";
if (role == FromRole){
return "From";
diff --git
a/src/plugins/xdxf/XdxfDialog.cpp
b/src/plugins/xdxf/XdxfDialog.cpp
index
7053030
..
80af106
100644
(file)
--- a/
src/plugins/xdxf/XdxfDialog.cpp
+++ b/
src/plugins/xdxf/XdxfDialog.cpp
@@
-296,7
+296,6
@@
void XdxfDialog::initializeUI() {
void XdxfDialog::setAccents(bool accents) {
void XdxfDialog::setAccents(bool accents) {
- qDebug()<<"setAcents"<<accents;
_accents = accents;
}
_accents = accents;
}
@@
-346,7
+345,6
@@
void XdxfDialog::selectFile() {
void XdxfDialog::fileDownloaded(QString) {
#ifndef Q_WS_MAEMO_5
void XdxfDialog::fileDownloaded(QString) {
#ifndef Q_WS_MAEMO_5
- qDebug()<<"fileDownloaded";
emit setPath(tr("Dictionary file: %1").arg(XdxfPlugin::dictDownloader.downloadedFile()));
_dictionaryFilePath = XdxfPlugin::dictDownloader.downloadedFile();
#else
emit setPath(tr("Dictionary file: %1").arg(XdxfPlugin::dictDownloader.downloadedFile()));
_dictionaryFilePath = XdxfPlugin::dictDownloader.downloadedFile();
#else
diff --git
a/src/plugins/xdxf/XdxfDictDownloadProgressDialog.cpp
b/src/plugins/xdxf/XdxfDictDownloadProgressDialog.cpp
index
69a47f0
..
bb8d6c4
100644
(file)
--- a/
src/plugins/xdxf/XdxfDictDownloadProgressDialog.cpp
+++ b/
src/plugins/xdxf/XdxfDictDownloadProgressDialog.cpp
@@
-120,7
+120,6
@@
void XdxfDictDownloadProgressDialog::updateProgress(float progress) {
void XdxfDictDownloadProgressDialog::reject() {
void XdxfDictDownloadProgressDialog::reject() {
- qDebug("tu");
#ifndef Q_WS_MAEMO_5
emit cancelDownloading();
emit setValue(-1);
#ifndef Q_WS_MAEMO_5
emit cancelDownloading();
emit setValue(-1);
diff --git
a/src/plugins/xdxf/XdxfDictDownloader.cpp
b/src/plugins/xdxf/XdxfDictDownloader.cpp
index
2b41d0b
..
57227b1
100644
(file)
--- a/
src/plugins/xdxf/XdxfDictDownloader.cpp
+++ b/
src/plugins/xdxf/XdxfDictDownloader.cpp
@@
-173,7
+173,6
@@
void XdxfDictDownloader::dictListReceived(QNetworkReply *reply) {
XdxfDictSelectDialog selectDialog(dicts, parentDialog);
if(selectDialog.exec()==QDialog::Accepted) {
XdxfDictSelectDialog selectDialog(dicts, parentDialog);
if(selectDialog.exec()==QDialog::Accepted) {
- qDebug()<<"etap 3.2";
progressDialog->setText(tr("Downloading dictionary"));
progressDialog->show();
progressDialog->setText(tr("Downloading dictionary"));
progressDialog->show();