Engauge Digitizer 2
Loading...
Searching...
No Matches
ChecklistLineEdit Class Reference

Adds key event handling to QLineEdit. More...

#include <ChecklistLineEdit.h>

Inheritance diagram for ChecklistLineEdit:
Inheritance graph
Collaboration diagram for ChecklistLineEdit:
Collaboration graph

Signals

void signalKeyRelease ()
 Signal that user has just released a key.

Public Member Functions

 ChecklistLineEdit ()
 Single constructor.
virtual void keyReleaseEvent (QKeyEvent *event)
 Intercept the key press event.

Detailed Description

Adds key event handling to QLineEdit.

Definition at line 13 of file ChecklistLineEdit.h.

Constructor & Destructor Documentation

◆ ChecklistLineEdit()

ChecklistLineEdit::ChecklistLineEdit ( )

Single constructor.

Definition at line 10 of file ChecklistLineEdit.cpp.

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}

Member Function Documentation

◆ keyReleaseEvent()

void ChecklistLineEdit::keyReleaseEvent ( QKeyEvent * event)
virtual

Intercept the key press event.

Definition at line 18 of file ChecklistLineEdit.cpp.

19{
20 LOG4CPP_INFO_S ((*mainCat)) << "ChecklistLineEdit::keyReleaseEvent";
21
22 emit signalKeyRelease();
23}
log4cpp::Category * mainCat
Definition Logger.cpp:14
void signalKeyRelease()
Signal that user has just released a key.
#define LOG4CPP_INFO_S(logger)
Definition convenience.h:18

◆ signalKeyRelease

void ChecklistLineEdit::signalKeyRelease ( )
signal

Signal that user has just released a key.


The documentation for this class was generated from the following files: