_link = lreg.capturedTexts().at(1);
}
+ DownloadDict(const DownloadDict &dict) {
+ _from = dict.fromLang();
+ _to = dict.toLang();
+ _title = dict.title();
+ _size = dict.size();
+ _link = dict.link();
+ }
+
//! \return dictionary source language
QString fromLang() const {return _from;}
\return 1 if this is before other
*/
bool operator <(DownloadDict other) const {
- if(_from < other.fromLang()) return true;
- if(_from > other.fromLang()) return false;
- if(_to < other.toLang()) return true;
- return false;
+ if(_from < other.fromLang())
+ return true;
+ else if(_from > other.fromLang())
+ return false;
+ else if(_to < other.toLang())
+ return true;
+ else
+ return false;
}
private: