* hacked up labels

* Custom widget for addresses with labels

* turnstile to use labels
This commit is contained in:
adityapk00
2018-11-21 16:30:15 -08:00
committed by GitHub
parent 79520f41c5
commit 44d26ddab7
16 changed files with 144 additions and 48 deletions

24
src/addresscombo.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef ADDRESSCOMBO_H
#define ADDRESSCOMBO_H
#include "precompiled.h"
class AddressCombo : public QComboBox
{
Q_OBJECT;
public:
explicit AddressCombo(QWidget* parent = nullptr);
QString itemText(int i);
QString currentText();
void addItem(const QString& itemText, double bal);
void insertItem(int index, const QString& text, double bal = 0.0);
public slots:
void setCurrentText(const QString& itemText);
private:
};
#endif // ADDRESSCOMBO_H