Engauge Digitizer 2
Loading...
Searching...
No Matches
ChecklistLineEdit.cpp
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#include "ChecklistLineEdit.h"
8#include "Logger.h"
9
11{
12 // Fine tuning of the border which is designed to look good when QLineEdit is all by itself. In our case,
13 // the QLineEdits are stacked tightly, so we want the borders between adjacent QLineEdits to look more like
14 // spreadsheet cells
15 setStyleSheet ("QLineEdit { border-style: solid; border-color: black; border-width: 1px 1px 1px 0;}");
16}
17
18void ChecklistLineEdit::keyReleaseEvent (QKeyEvent * /* event */)
19{
20 LOG4CPP_INFO_S ((*mainCat)) << "ChecklistLineEdit::keyReleaseEvent";
21
22 emit signalKeyRelease();
23}
log4cpp::Category * mainCat
Definition Logger.cpp:14
virtual void keyReleaseEvent(QKeyEvent *event)
Intercept the key press event.
ChecklistLineEdit()
Single constructor.
void signalKeyRelease()
Signal that user has just released a key.
#define LOG4CPP_INFO_S(logger)
Definition convenience.h:18