Files
triangles_v5/src/qt/overviewpage.h
T
sami7777 b41d1be128 Move onion address to status bar, add toggle in Options
- Remove onion address label from overview page (was cutting into
  transaction list area)
- Add it to the left side of the main window status bar instead,
  opposite the sync/connection icons
- Add "Show .onion address in status bar" checkbox under Options >
  Display (enabled by default)
- Polls every 5 seconds; hidden until the address is available

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-09 22:31:26 -07:00

57 lines
1.2 KiB
C++

#ifndef OVERVIEWPAGE_H
#define OVERVIEWPAGE_H
#include <QWidget>
QT_BEGIN_NAMESPACE
class QModelIndex;
QT_END_NAMESPACE
namespace Ui {
class OverviewPage;
}
class ClientModel;
class WalletModel;
class TxViewDelegate;
class TransactionFilterProxy;
/** Overview ("home") page widget */
class OverviewPage : public QWidget
{
Q_OBJECT
public:
explicit OverviewPage(QWidget *parent = 0);
~OverviewPage();
void setClientModel(ClientModel *clientModel);
void setModel(WalletModel *model);
void showOutOfSyncWarning(bool fShow);
public slots:
void setBalance(qint64 balance, qint64 stake, qint64 unconfirmedBalance, qint64 immatureBalance);
void setTransactionSyncState(bool syncing);
signals:
void transactionClicked(const QModelIndex &index);
private:
Ui::OverviewPage *ui;
ClientModel *clientModel;
WalletModel *model;
qint64 currentBalance;
qint64 currentStake;
qint64 currentUnconfirmedBalance;
qint64 currentImmatureBalance;
bool walletTransactionSyncing;
TxViewDelegate *txdelegate;
TransactionFilterProxy *filter;
private slots:
void updateDisplayUnit();
void handleTransactionClicked(const QModelIndex &index);
};
#endif // OVERVIEWPAGE_H