~adamreichold/qpdfview/trunk

« back to all changes in this revision

Viewing changes to sources/annotationwidgets.cpp

  • Committer: Adam Reichold
  • Date: 2014-03-29 10:20:32 UTC
  • Revision ID: adam.reichold@t-online.com-20140329102032-6z5yl9a2fkwm62rd
Make proper use of application and anonymous namespaces and fix a few header guards.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
#include <poppler-annotation.h>
44
44
 
45
 
static bool hideOnEscape(QWidget* widget, QKeyEvent* event)
 
45
namespace
 
46
{
 
47
 
 
48
bool hideOnEscape(QWidget* widget, QKeyEvent* event)
46
49
{
47
50
    if(event->key() == Qt::Key_Escape)
48
51
    {
55
58
    return false;
56
59
}
57
60
 
 
61
} // anonymous
 
62
 
 
63
namespace qpdfview
 
64
{
 
65
 
58
66
AnnotationWidget::AnnotationWidget(QMutex* mutex, Poppler::Annotation* annotation, QWidget* parent) : QPlainTextEdit(parent),
59
67
    m_mutex(mutex),
60
68
    m_annotation(annotation)
177
185
        }
178
186
    }
179
187
}
 
188
 
 
189
} // qpdfview