00001 /****************************************************************************************************** 00002 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released * 00003 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file * 00004 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. * 00005 ******************************************************************************************************/ 00006 00007 #include "ChecklistLineEdit.h" 00008 #include "Logger.h" 00009 00010 ChecklistLineEdit::ChecklistLineEdit() 00011 { 00012 // Fine tuning of the border which is designed to look good when QLineEdit is all by itself. In our case, 00013 // the QLineEdits are stacked tightly, so we want the borders between adjacent QLineEdits to look more like 00014 // spreadsheet cells 00015 setStyleSheet ("QLineEdit { border-style: solid; border-color: black; border-width: 1px 1px 1px 0;}"); 00016 } 00017 00018 void ChecklistLineEdit::keyReleaseEvent (QKeyEvent * /* event */) 00019 { 00020 LOG4CPP_INFO_S ((*mainCat)) << "ChecklistLineEdit::keyReleaseEvent"; 00021 00022 emit signalKeyRelease(); 00023 }