Labels (#59)
* hacked up labels * Custom widget for addresses with labels * turnstile to use labels
This commit is contained in:
24
src/addresscombo.h
Normal file
24
src/addresscombo.h
Normal 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
|
||||
Reference in New Issue
Block a user