Коммит d297f552 создал по автору Коул Милена Ричардовна's avatar Коул Милена Ричардовна
Просмотр файлов

change icon and app names

владелец 54ea0759
......@@ -14,7 +14,7 @@ const QString vkm_link = "https://web.vk.me/";
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setWindowIcon(QIcon(QStringLiteral(":/VKChat.svg")));
a.setWindowIcon(QIcon(QStringLiteral(":/MVKChat.svg")));
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
......@@ -27,7 +27,6 @@ int main(int argc, char *argv[])
break;
}
}
QWebEngineSettings::defaultSettings()->setAttribute(QWebEngineSettings::PluginsEnabled, true);
#if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)
QWebEngineSettings::defaultSettings()->setAttribute(QWebEngineSettings::DnsPrefetchEnabled, true);
......
......@@ -4,32 +4,37 @@
<context>
<name>BrowserWindow</name>
<message>
<location filename="webEngineWidgets/browserwindow.cpp" line="86"/>
<source>Open VKM</source>
<translation>Открыть VK Мессенджер</translation>
<location filename="webEngineWidgets/browserwindow.cpp" line="83"/>
<source>MVKM</source>
<translation>МВКМ</translation>
</message>
<message>
<location filename="webEngineWidgets/browserwindow.cpp" line="92"/>
<source>Quit VK Messenger</source>
<translation>Закрыть VK Мессенджер</translation>
<location filename="webEngineWidgets/browserwindow.cpp" line="88"/>
<source>Open MVKM</source>
<translation>Открыть MVK Мессенджер</translation>
</message>
<message>
<location filename="webEngineWidgets/browserwindow.cpp" line="104"/>
<location filename="webEngineWidgets/browserwindow.cpp" line="94"/>
<source>Quit MVK Messenger</source>
<translation>Закрыть MVK Мессенджер</translation>
</message>
<message>
<location filename="webEngineWidgets/browserwindow.cpp" line="106"/>
<source>App</source>
<translation>Приложение</translation>
</message>
<message>
<location filename="webEngineWidgets/browserwindow.cpp" line="105"/>
<location filename="webEngineWidgets/browserwindow.cpp" line="107"/>
<source>Reload</source>
<translation>Перезагрузить</translation>
</message>
<message>
<location filename="webEngineWidgets/browserwindow.cpp" line="108"/>
<location filename="webEngineWidgets/browserwindow.cpp" line="110"/>
<source>Return home page</source>
<translation>Перезапустить мессенджер</translation>
</message>
<message>
<location filename="webEngineWidgets/browserwindow.cpp" line="111"/>
<location filename="webEngineWidgets/browserwindow.cpp" line="113"/>
<source>Close application</source>
<translation>Закрыть приложение</translation>
</message>
......
......@@ -6,9 +6,9 @@
fill="none"
version="1.1"
id="svg28"
sodipodi:docname="VKChat.svg"
sodipodi:docname="MVKChat.svg"
inkscape:version="1.2.2 (unknown)"
inkscape:export-filename="VKChat.png"
inkscape:export-filename="MVKChat.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
......@@ -33,8 +33,8 @@
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="4.0117188"
inkscape:cx="99.084712"
inkscape:cy="74.656279"
inkscape:cx="74.40701"
inkscape:cy="75.154819"
inkscape:window-width="1920"
inkscape:window-height="1008"
inkscape:window-x="0"
......
......@@ -3,7 +3,7 @@
<file>libs/jQuery/jquery.js</file>
<file>libs/jQuery/jquery.min.js</file>
<file>libs/jQuery/jquery.min.map</file>
<file>VKChat.svg</file>
<file>VKChat.png</file>
<file>MVKChat.svg</file>
<file>MVKChat.png</file>
</qresource>
</RCC>
......@@ -80,16 +80,18 @@ BrowserWindow::BrowserWindow(Browser *browser, QWebEngineProfile *profile, QStr
{
setFocusPolicy(Qt::ClickFocus);
setWindowTitle(tr("MVKM"));
/////////////SetTrayMenu/////////////
m_appTrayIcon = new QSystemTrayIcon( this );
m_appTrayIcon->setToolTip(tr("Open VKM"));
m_appTrayIcon->setIcon(QIcon(":/VKChat.png"));
m_appTrayIcon->setToolTip(tr("Open MVKM"));
m_appTrayIcon->setIcon(QIcon(":/MVKChat.png"));
// Set Tray Icon Context Menu
QMenu* tray_menu = new QMenu(this);
QAction* closeAppAction = new QAction(tr("Quit VK Messenger"), this);
QAction* closeAppAction = new QAction(tr("Quit MVK Messenger"), this);
connect(closeAppAction, SIGNAL(triggered()), this, SLOT(close()));
tray_menu->addAction(closeAppAction);
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать