Minor UI tweaks and clean up project.
This commit is contained in:
@@ -67,11 +67,6 @@ int main(int argc, char* argv[]) {
|
||||
qRegisterMetaType<SpectralRoom*>("SpectralRoom*");
|
||||
qRegisterMetaType<SpectralUser*>("SpectralUser*");
|
||||
|
||||
#if defined(BUNDLE_FONT)
|
||||
QFontDatabase::addApplicationFont(":/assets/font/roboto.ttf");
|
||||
QFontDatabase::addApplicationFont(":/assets/font/twemoji.ttf");
|
||||
#endif
|
||||
|
||||
QQmlApplicationEngine engine;
|
||||
|
||||
engine.addImportPath("qrc:/imports");
|
||||
|
||||
@@ -72,13 +72,6 @@ void SpectralRoom::chooseAndUploadFile() {
|
||||
}
|
||||
}
|
||||
|
||||
void SpectralRoom::saveFileAs(QString eventId) {
|
||||
auto fileName = QFileDialog::getSaveFileName(Q_NULLPTR, tr("Save File as"),
|
||||
fileNameToDownload(eventId));
|
||||
if (!fileName.isEmpty())
|
||||
downloadFile(eventId, QUrl::fromLocalFile(fileName));
|
||||
}
|
||||
|
||||
void SpectralRoom::acceptInvitation() {
|
||||
connection()->joinRoom(id());
|
||||
}
|
||||
|
||||
@@ -251,7 +251,6 @@ class SpectralRoom : public Room {
|
||||
|
||||
public slots:
|
||||
void chooseAndUploadFile();
|
||||
void saveFileAs(QString eventId);
|
||||
void acceptInvitation();
|
||||
void forget();
|
||||
void sendTypingNotification(bool isTyping);
|
||||
|
||||
Reference in New Issue
Block a user