You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 weeks ago | |
|---|---|---|
| .gitignore | 2 weeks ago | |
| CMakeLists.txt | 2 weeks ago | |
| NumKeyBoard.pri | 2 years ago | |
| NumKeyBoard.pro | 2 weeks ago | |
| NumKeyBoard.qrc | 2 weeks ago | |
| NumKeyBoard_global.h | 2 weeks ago | |
| README.md | 2 weeks ago | |
| numkeydia.cpp | 2 weeks ago | |
| numkeydia.h | 2 weeks ago | |
| numkeydia.ui | 2 weeks ago | |
README.md
NumKeyBoard
Libs/NumKeyBoard is the shared numeric keyboard library used by both TGcs and LauncherLib.
qmake
Build the library from TGcsProject.pro or Libs/NumKeyBoard/NumKeyBoard.pro, then link it from consumer projects:
unix|win32: LIBS += -L$$PWD/Build/Libs/ -lNumKeyBoard
INCLUDEPATH += $$PWD/Libs/NumKeyBoard
DEPENDPATH += $$PWD/Libs/NumKeyBoard
API
Use the shared singleton-style keyboard API:
auto *keyboard = KeyBoard::app();
if(!keyboard)
{
keyboard = new NumKeyDia;
}
keyboard->setValue(lineEdit->text());
keyboard->exec();
lineEdit->setText(keyboard->getValue());
The old setPLineEdit / range-validation API is no longer part of the shared library.