QList<CommonDictInterface*> Backbone::activeDicts() {
QList<CommonDictInterface*>res;
foreach(CommonDictInterface* dict, _dicts.keys())
- if(_dicts[dict])
+ if(_dicts[dict]){
res.append(dict);
+ }
return res;
}
setExactSearch(false);
}
}
-
wordListWidget->setFocus();
}
emit setEnableHistoryPrev(false);
completerModel = new QStringListModel(this);
- // connect(&delayTimer, SIGNAL(timeout()),
- // this, SLOT(delaySearchTimeout()));
+ connect(&delayTimer, SIGNAL(timeout()),
+ this, SLOT(delaySearchTimeout()));
view->setFocus();
historyShowToolButton->setEnabled(false);
}
#endif
+qDebug()<<"tu2???";
}
void SearchBarWidget::setBusy() {
}
void SearchBarWidget::updateBusyTimer(){
- // qDebug()<<"test12";
+ qDebug()<<"test12";
if(progressMax==true){
emit progresSetValue2(0);
progressMax=false;
qml/TranslationView.qml \
qml/FlickableWebView.qml \
qml/ScrollBar.qml \
- qml/SpinBox.qml
+ qml/SpinBox.qml \
qml/Checkbox.qml
target.path = $$BIN_DIR
anchors.horizontalCenterOffset: 0
onLinkActivated: linkClicked(link);
}
-
- SpinBox{
- id: test;
- x:100;
- y:100;
- }
}
color: myPalette.window
function setUrl(string){
- webView.url = "file:///home/test.html";
+ webView.url = "file:///home/jakub/test.html";
webView.url = string;
}
}
cha=QString::fromUtf8(c);
- return cha.at(0);
+ if(cha.size()!=0)
+ return cha.at(0);
+ else
+ return '\0';
}
QChar UncompressedReader::readChar() {
char c[4]={0};
QString cha;
-
_stream.readRawData(c,1);
if(((unsigned char)c[0])>239)
_stream.readRawData(c+1,3);
qDebug()<<"error - starDict - read wordList from UTF-8";
cha=QString::fromUtf8(c);
-
- return cha.at(0);
+ if(cha.size()!=0)
+ return cha.at(0);
+ else
+ return '\0';
}
QString result;
QChar c;
c = readChar();
-
while(c != '\0') {
result += c;
c = readChar();