aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 0e55a8f..e1f4c5c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -26,13 +26,15 @@
int main(int argc, char *argv[])
{
Browser app(argc, argv);
+ app.setApplicationName("smolbote");
#ifdef GIT_VERSION
app.setApplicationVersion(GIT_VERSION);
#else
app.setApplicationVersion("1.0.0");
#endif
-
app.setWindowIcon(QIcon(QLatin1String(":/icon.svg")));
+ // This lets the web view automatically scale on high-dpi displays.
+ app.setAttribute(Qt::AA_EnableHighDpiScaling);
QCommandLineParser parser;
parser.setApplicationDescription("yet another Qt browser");
@@ -53,7 +55,7 @@ int main(int argc, char *argv[])
MainWindow *w = new MainWindow(parser.positionalArguments());
if(parser.isSet(profileOption)) {
- w->loadProfile(parser.value(profileOption));
+ w->setProfile(app.profile(parser.value(profileOption)));
}
app.addWindow(w);