Engauge Digitizer  2
ChecklistLineEdit.cpp
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 
18 void ChecklistLineEdit::keyReleaseEvent (QKeyEvent * /* event */)
19 {
20  LOG4CPP_INFO_S ((*mainCat)) << "ChecklistLineEdit::keyReleaseEvent";
21 
22  emit signalKeyRelease();
23 }
virtual void keyReleaseEvent(QKeyEvent *event)
Intercept the key press event.
void signalKeyRelease()
Signal that user has just released a key.
ChecklistLineEdit()
Single constructor.