diff options
author | saturneric <[email protected]> | 2024-06-28 21:05:25 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-06-28 21:05:25 +0000 |
commit | d0333031c1f593998a501eff866f091ff2f036be (patch) | |
tree | 707a597c25b488955572601e87ba9e379df0a6ed /src/ui/main_window/MainWindow.cpp | |
parent | feat: rewrite key list structure and logic (diff) | |
download | GpgFrontend-d0333031c1f593998a501eff866f091ff2f036be.tar.gz GpgFrontend-d0333031c1f593998a501eff866f091ff2f036be.zip |
feat: user can select shown columns at key table
Diffstat (limited to 'src/ui/main_window/MainWindow.cpp')
-rw-r--r-- | src/ui/main_window/MainWindow.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/ui/main_window/MainWindow.cpp b/src/ui/main_window/MainWindow.cpp index c50cfc5e..7e2bbe85 100644 --- a/src/ui/main_window/MainWindow.cpp +++ b/src/ui/main_window/MainWindow.cpp @@ -61,10 +61,13 @@ void MainWindow::Init() noexcept { setCentralWidget(edit_); /* the list of Keys available*/ - m_key_list_ = - new KeyList(KeyMenuAbility::REFRESH | KeyMenuAbility::UNCHECK_ALL | - KeyMenuAbility::SEARCH_BAR, - this); + m_key_list_ = new KeyList( + KeyMenuAbility::REFRESH | KeyMenuAbility::UNCHECK_ALL | + KeyMenuAbility::SEARCH_BAR, + GpgKeyTableColumn::kTYPE | GpgKeyTableColumn::kNAME | + GpgKeyTableColumn::kKEY_ID | GpgKeyTableColumn::kEMAIL_ADDRESS | + GpgKeyTableColumn::kUSAGE | GpgKeyTableColumn::kOWNER_TRUST, + this); info_board_ = new InfoBoardWidget(this); |