mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 02:30:44 +00:00
Mac build cleanup #2
This commit is contained in:
parent
4c711f6b0b
commit
ff47ff25cb
@ -408,10 +408,8 @@ void UpdaterWindow::replyFinished(QNetworkReply * reply)
|
||||
ui->tableWidget->item(current_row,0)->setData(Qt::UserRole+1,failed);
|
||||
QTimer::singleShot(100,this,SLOT(upgradeNext()));
|
||||
ui->plainTextEdit->appendPlainText("Download Complete");
|
||||
|
||||
} else if (requestmode==RM_UpdateQT) {
|
||||
ui->plainTextEdit->appendPlainText("Received "+QString::number(reply->size())+" bytes");
|
||||
}
|
||||
|
||||
} else {
|
||||
mainwin->Notify("There was an error completing a network request:\n\n("+reply->errorString()+")");
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ namespace Ui {
|
||||
class UpdaterWindow;
|
||||
}
|
||||
|
||||
enum RequestMode { RM_None, RM_CheckUpdates, RM_GetFile, RM_UpdateQT };
|
||||
enum RequestMode { RM_None, RM_CheckUpdates, RM_GetFile };
|
||||
|
||||
class UpdaterWindow : public QMainWindow
|
||||
{
|
||||
|
@ -28,7 +28,7 @@
|
||||
<item>
|
||||
<widget class="QStackedWidget" name="stackedWidget">
|
||||
<property name="currentIndex">
|
||||
<number>1</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="frontPage">
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
@ -365,7 +365,6 @@
|
||||
</customwidgets>
|
||||
<resources>
|
||||
<include location="Resources.qrc"/>
|
||||
<include location="resources.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
@ -43,6 +43,8 @@ bool UpdateParser::startDocument()
|
||||
|
||||
bool UpdateParser::endElement(const QString &namespaceURI, const QString &localName, const QString &qName)
|
||||
{
|
||||
Q_UNUSED(namespaceURI)
|
||||
Q_UNUSED(localName)
|
||||
QString name=qName.toLower();
|
||||
if (name=="release") {
|
||||
inRelease=false;
|
||||
@ -68,6 +70,8 @@ bool UpdateParser::characters(const QString &ch)
|
||||
|
||||
bool UpdateParser::startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
|
||||
{
|
||||
Q_UNUSED(namespaceURI)
|
||||
Q_UNUSED(localName)
|
||||
QString name=qName.toLower();
|
||||
if (inRelease && name=="update") {
|
||||
QString ver, type;
|
||||
|
@ -8,9 +8,9 @@
|
||||
class Update
|
||||
{
|
||||
public:
|
||||
explicit Update();
|
||||
explicit Update(const Update & copy);
|
||||
explicit Update(QString _type, QString _version, QString _platform, QDate _date);
|
||||
Update();
|
||||
Update(const Update & copy);
|
||||
Update(QString _type, QString _version, QString _platform, QDate _date);
|
||||
QString type;
|
||||
QString version;
|
||||
QString platform;
|
||||
|
Loading…
Reference in New Issue
Block a user