mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 20:44:15 +00:00
Trim whitespaces
This commit is contained in:
parent
c964f0c490
commit
1f9eb594e7
@ -273,7 +273,7 @@ MainWindow::MainWindow(QWidget *parent)
|
|||||||
|
|
||||||
m_prioSeparator = m_ui->toolBar->insertSeparator(m_ui->actionTopPriority);
|
m_prioSeparator = m_ui->toolBar->insertSeparator(m_ui->actionTopPriority);
|
||||||
m_prioSeparatorMenu = m_ui->menuEdit->insertSeparator(m_ui->actionTopPriority);
|
m_prioSeparatorMenu = m_ui->menuEdit->insertSeparator(m_ui->actionTopPriority);
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
foreach (QAction *action, m_ui->toolBar->actions()) {
|
foreach (QAction *action, m_ui->toolBar->actions()) {
|
||||||
if (action->isSeparator()) {
|
if (action->isSeparator()) {
|
||||||
@ -1272,13 +1272,13 @@ static bool dockClickHandler(id self, SEL cmd, ...)
|
|||||||
{
|
{
|
||||||
Q_UNUSED(self)
|
Q_UNUSED(self)
|
||||||
Q_UNUSED(cmd)
|
Q_UNUSED(cmd)
|
||||||
|
|
||||||
qDebug("Dock icon clicked!");
|
qDebug("Dock icon clicked!");
|
||||||
|
|
||||||
if (dockMainWindowHandle && !dockMainWindowHandle->isVisible()) {
|
if (dockMainWindowHandle && !dockMainWindowHandle->isVisible()) {
|
||||||
dockMainWindowHandle->activate();
|
dockMainWindowHandle->activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return NO (false) to suppress the default OS X actions
|
// Return NO (false) to suppress the default OS X actions
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1287,7 +1287,7 @@ void MainWindow::setupDockClickHandler()
|
|||||||
{
|
{
|
||||||
Class cls = objc_getClass("NSApplication");
|
Class cls = objc_getClass("NSApplication");
|
||||||
objc_object *appInst = objc_msgSend(reinterpret_cast<objc_object *>(cls), sel_registerName("sharedApplication"));
|
objc_object *appInst = objc_msgSend(reinterpret_cast<objc_object *>(cls), sel_registerName("sharedApplication"));
|
||||||
|
|
||||||
if (!appInst)
|
if (!appInst)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -1633,7 +1633,7 @@ void MainWindow::createTrayIcon()
|
|||||||
{
|
{
|
||||||
// Tray icon
|
// Tray icon
|
||||||
m_systrayIcon = new QSystemTrayIcon(getSystrayIcon(), this);
|
m_systrayIcon = new QSystemTrayIcon(getSystrayIcon(), this);
|
||||||
|
|
||||||
m_systrayIcon->setContextMenu(trayIconMenu());
|
m_systrayIcon->setContextMenu(trayIconMenu());
|
||||||
connect(m_systrayIcon, SIGNAL(messageClicked()), this, SLOT(balloonClicked()));
|
connect(m_systrayIcon, SIGNAL(messageClicked()), this, SLOT(balloonClicked()));
|
||||||
// End of Icon Menu
|
// End of Icon Menu
|
||||||
|
Loading…
x
Reference in New Issue
Block a user