mirror of
https://github.com/YACReader/yacreader
synced 2025-07-23 15:35:03 -04:00
unificado el formato de lor archivos de about/ayuda a utf-8
eliminados algunos comentarios TODO que ya se hab?an completado
This commit is contained in:
@ -537,7 +537,7 @@ void MainWindowViewer::newVersion()
|
||||
int ret = msgBox.exec();
|
||||
|
||||
if(ret==QMessageBox::Yes){
|
||||
QDesktopServices::openUrl(QUrl("http://code.google.com/p/yacreader/"));
|
||||
QDesktopServices::openUrl(QUrl("http://www.yacreader.com"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include <QPixmap>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QTextCodec>
|
||||
|
||||
ShortcutsDialog::ShortcutsDialog(QWidget * parent)
|
||||
:QDialog(parent)//,Qt::FramelessWindowHint)
|
||||
@ -26,14 +27,12 @@ ShortcutsDialog::ShortcutsDialog(QWidget * parent)
|
||||
QHBoxLayout * shortcutsLayout = new QHBoxLayout;
|
||||
|
||||
shortcuts = new QTextEdit();
|
||||
QTextEdit * shortcuts2 = new QTextEdit();
|
||||
shortcuts->setFrameStyle(QFrame::NoFrame);
|
||||
shortcuts2->setFrameStyle(QFrame::NoFrame);
|
||||
|
||||
//"<p><b>General functions:</b><hr/><b>O</b> : Open comic<br/><b>Esc</b> : Exit</p>"
|
||||
shortcuts->setReadOnly(true);
|
||||
shortcuts2->setReadOnly(true);
|
||||
shortcutsLayout->addWidget(shortcuts);
|
||||
shortcutsLayout->addWidget(shortcuts2);
|
||||
//shortcutsLayout->addWidget(shortcuts2);
|
||||
shortcutsLayout->setSpacing(0);
|
||||
mainLayout->addLayout(shortcutsLayout);
|
||||
mainLayout->addLayout(bottomLayout);
|
||||
@ -57,18 +56,12 @@ ShortcutsDialog::ShortcutsDialog(QWidget * parent)
|
||||
QFile f(":/files/shortcuts.html");
|
||||
f.open(QIODevice::ReadOnly);
|
||||
QTextStream txtS(&f);
|
||||
txtS.setCodec(QTextCodec::codecForName("UTF-8"));
|
||||
QString content = txtS.readAll();
|
||||
|
||||
f.close();
|
||||
|
||||
shortcuts->setHtml(content);
|
||||
|
||||
QFile f2(":/files/shortcuts2.html");
|
||||
f2.open(QIODevice::ReadOnly);
|
||||
QTextStream txtS2(&f2);
|
||||
content = txtS2.readAll();
|
||||
f2.close();
|
||||
|
||||
shortcuts2->setHtml(content);
|
||||
|
||||
setWindowTitle(tr("Keyboard Shortcuts"));
|
||||
}
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include <QFile>
|
||||
#include <QPoint>
|
||||
#include <QWidget>
|
||||
#include <QTextCodec>
|
||||
|
||||
#include "translator.h"
|
||||
|
||||
@ -28,6 +29,7 @@ YACReaderTranslator::YACReaderTranslator(QWidget * parent)
|
||||
QFile f(":/files/translator.html");
|
||||
f.open(QIODevice::ReadOnly);
|
||||
QTextStream txtS(&f);
|
||||
txtS.setCodec(QTextCodec::codecForName("UTF-8"));
|
||||
QString contentHTML = txtS.readAll();
|
||||
view->setHtml(contentHTML);
|
||||
view->page()->setLinkDelegationPolicy(QWebPage::DelegateExternalLinks);
|
||||
|
Reference in New Issue
Block a user