Commit 1f705ab3 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Alexandre Lision

selected account: update SmartList

Connect SmartView to AvailableAccountModel and filter rows when
selection changed.

Tuleap: #1532
Change-Id: I96ec9b8eb09ee5f3a588428e8cd0538f3860cefb
Reviewed-by: default avatarAlexandre Lision <alexandre.lision@savoirfairelinux.com>
parent 13b7688e
......@@ -38,6 +38,7 @@
#import <contactmethod.h>
#import <globalinstances.h>
#import <phonedirectorymodel.h>
#import <AvailableAccountModel.h>
#import "QNSTreeController.h"
#import "delegates/ImageManipulationDelegate.h"
......@@ -126,6 +127,12 @@ NSInteger const CANCEL_BUTTON_TAG = 600;
[smartView scrollRowToVisible:0];
});
QObject::connect(AvailableAccountModel::instance().selectionModel(),
&QItemSelectionModel::currentChanged,
[self](const QModelIndex& idx){
[self clearSearchField];
});
[self.view setWantsLayer:YES];
[self.view setLayer:[CALayer layer]];
[self.view.layer setBackgroundColor:[NSColor whiteColor].CGColor];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment