Engauge Digitizer  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Signals | Public Member Functions | List of all members
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. More...
 

Public Member Functions

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

Detailed Description

Adds key event handling to QLineEdit.

Definition at line 13 of file ChecklistLineEdit.h.

Constructor & Destructor Documentation

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

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 }
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
void signalKeyRelease()
Signal that user has just released a key.
log4cpp::Category * mainCat
Definition: Logger.cpp:14
void ChecklistLineEdit::signalKeyRelease ( )
signal

Signal that user has just released a key.


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