small cleanups
This commit is contained in:
parent
51f05b349b
commit
c4ebd0a6a5
|
@ -20,27 +20,27 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dedicatedservergroupwidget.ui" line="69"/>
|
||||
<location filename="dedicatedservergroupwidget.ui" line="78"/>
|
||||
<source>Name</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dedicatedservergroupwidget.ui" line="74"/>
|
||||
<location filename="dedicatedservergroupwidget.ui" line="83"/>
|
||||
<source>IP</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dedicatedservergroupwidget.ui" line="79"/>
|
||||
<location filename="dedicatedservergroupwidget.ui" line="88"/>
|
||||
<source>Monitoring</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dedicatedservergroupwidget.ui" line="84"/>
|
||||
<location filename="dedicatedservergroupwidget.ui" line="93"/>
|
||||
<source>Hardware</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dedicatedservergroupwidget.ui" line="89"/>
|
||||
<location filename="dedicatedservergroupwidget.ui" line="98"/>
|
||||
<source>Price</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -65,12 +65,12 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dedicatedservergroupwidget.cpp" line="102"/>
|
||||
<location filename="dedicatedservergroupwidget.cpp" line="105"/>
|
||||
<source>(incomplete!) %1 %2</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dedicatedservergroupwidget.cpp" line="103"/>
|
||||
<location filename="dedicatedservergroupwidget.cpp" line="106"/>
|
||||
<source>For no good reason, OVH sometimes doesn't provide pricing information, sorry about that</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
|
|
@ -16,7 +16,10 @@ I implemented what I needed so far:
|
|||
- browsing your dedicated servers, grouped by reverse domain,
|
||||
- showing basic server info (name, location, network settings),
|
||||
- opening a KVM interface,
|
||||
- getting the last bill for a given server.
|
||||
- getting the last bill for a given server,
|
||||
- checking/changing server monitoring status,
|
||||
- revoking service engagement,
|
||||
- downloading all bills of previous month (directly instead of running the async job on OVH side)
|
||||
|
||||
What I plan to add:
|
||||
- [x] using SQLite to cache OVH API answers. Because it's so incredibly slow and inefficient, esp when searching bills.
|
||||
|
@ -26,7 +29,7 @@ What I plan to add:
|
|||
- [ ] view of pending tasks on a given server,
|
||||
- [ ] support for vrack on dedicated servers,
|
||||
- [ ] a dedicated **searchable** bill view, because it's an ugly mess on OVH side.
|
||||
- [ ] switch to KDDockWidgets for a nicer interface
|
||||
- [ ] switch to KDDockWidgets for a nicer interface, maybe
|
||||
|
||||
How to build?
|
||||
----
|
||||
|
|
|
@ -96,8 +96,11 @@ QCoro::Task<> DedicatedServerGroupWidget::fetchOvhData()
|
|||
totalMonthlyCost += totalCost;
|
||||
}
|
||||
|
||||
ui->serverTable->resizeColumnsToContents();
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
if (incompletePricing) {
|
||||
ui->monthlyCost->setText(tr("(incomplete!) %1 %2").arg(totalMonthlyCost).arg(currency));
|
||||
ui->monthlyCost->setToolTip(tr("For no good reason, OVH sometimes doesn't provide pricing information, sorry about that"));
|
||||
|
|
|
@ -59,6 +59,15 @@
|
|||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QTableWidget" name="serverTable">
|
||||
<property name="editTriggers">
|
||||
<set>QAbstractItemView::NoEditTriggers</set>
|
||||
</property>
|
||||
<property name="sortingEnabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<attribute name="verticalHeaderVisible">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string notr="true">OVH Name</string>
|
||||
|
|
|
@ -45,6 +45,7 @@ QCoro::Task<> ServicesView::loadServices()
|
|||
qDebug() << serviceInfo;
|
||||
if (!serviceInfo["parentServiceId"].isNull()) {
|
||||
rowCount--;
|
||||
ui->tableWidget->setRowCount(rowCount);
|
||||
continue;
|
||||
}
|
||||
auto resourceInfo = serviceInfo["resource"].toObject();
|
||||
|
@ -95,8 +96,8 @@ QCoro::Task<> ServicesView::loadServices()
|
|||
ui->tableWidget->setCellWidget(i, c, strategyCombobox);
|
||||
}
|
||||
i++;
|
||||
ui->tableWidget->resizeColumnsToContents();
|
||||
}
|
||||
ui->tableWidget->setRowCount(rowCount);
|
||||
connect(ui->tableWidget, &QTableWidget::cellChanged, this, &ServicesView::on_tableWidget_cellChanged);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue