From a1e3d36dca9c6abf235c7ddf47ab9185c4b748d5 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Wed, 25 Mar 2015 10:15:50 +0100 Subject: First commit of IT-Sicherheit --- src/spinboxciphers.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/spinboxciphers.cpp (limited to 'src/spinboxciphers.cpp') diff --git a/src/spinboxciphers.cpp b/src/spinboxciphers.cpp new file mode 100644 index 0000000..8b2193c --- /dev/null +++ b/src/spinboxciphers.cpp @@ -0,0 +1,17 @@ +#include "spinboxciphers.h" + +SpinBoxCiphers::SpinBoxCiphers(QWidget* parent) : + QSpinBox(parent) +{ + m_cipherStrings = &(CiphersSingleton::getInstance()); +} + +QString SpinBoxCiphers::textFromValue(int value) const +{ + return m_cipherStrings->textFromValue(value); +} + +int SpinBoxCiphers::valueFromText(const QString &text) const +{ + return m_cipherStrings->valueFromText(text); +} -- cgit v1.2.3-70-g09d2