Files
pilotclient/src/blackgui/shortcut.cpp
Klaus Basan 46e7d42e8c refs #568, specialized view class for DB objects
* CViewWithDbObjects
* new menu for views (delete key, remove)
* adjusted derived classes
2016-01-28 16:31:43 +01:00

65 lines
1.7 KiB
C++

/* Copyright (C) 2015
* swift project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*
* Class based on qLed: Copyright (C) 2010 by P. Sereno, http://www.sereno-online.com
*/
#include "shortcut.h"
namespace BlackGui
{
const QKeySequence &CShortcut::keyStash()
{
static const QKeySequence k(Qt::ALT + Qt::Key_S);
return k;
}
const QKeySequence &CShortcut::keyClearSelection()
{
static const QKeySequence k(Qt::CTRL + Qt::Key_C);
return k;
}
const QKeySequence &CShortcut::keySelectAll()
{
static const QKeySequence k(Qt::CTRL + Qt::Key_A);
return k;
}
const QKeySequence &BlackGui::CShortcut::keyDisplayFilter()
{
static const QKeySequence k(Qt::CTRL + Qt::Key_F);
return k;
}
const QKeySequence &CShortcut::keySave()
{
static const QKeySequence k(Qt::CTRL + Qt::Key_S);
return k;
}
const QKeySequence &CShortcut::keySaveViews()
{
// remark CTRL+S not working in views
static const QKeySequence k(Qt::SHIFT + Qt::Key_S);
return k;
}
const QKeySequence &CShortcut::keyDelete()
{
static const QKeySequence k(Qt::Key_Delete);
return k;
}
const QKeySequence &CShortcut::keyEscape()
{
static const QKeySequence k(Qt::Key_Escape);
return k;
}
} // ns