|
|
@ -66,8 +66,8 @@ UBFeaturesActionBar::UBFeaturesActionBar( UBFeaturesController *controller, QWid |
|
|
|
mButtonGroup->addButton(mpRemoveFavoriteBtn); |
|
|
|
mButtonGroup->addButton(mpRemoveFavoriteBtn); |
|
|
|
mButtonGroup->addButton(mpNewFolderBtn); |
|
|
|
mButtonGroup->addButton(mpNewFolderBtn); |
|
|
|
// Connect signals & slots
|
|
|
|
// Connect signals & slots
|
|
|
|
connect(mpFavoriteAction,SIGNAL(triggered()), this, SLOT(onActionFavorite())); |
|
|
|
/*connect(mpFavoriteAction,SIGNAL(triggered()), this, SLOT(onActionFavorite()));
|
|
|
|
/*connect(mpSocialAction,SIGNAL(triggered()), this, SLOT(onActionSocial()));
|
|
|
|
connect(mpSocialAction,SIGNAL(triggered()), this, SLOT(onActionSocial())); |
|
|
|
connect(mpSearchAction,SIGNAL(triggered()), this, SLOT(onActionSearch())); |
|
|
|
connect(mpSearchAction,SIGNAL(triggered()), this, SLOT(onActionSearch())); |
|
|
|
connect(mpDeleteAction,SIGNAL(triggered()), this, SLOT(onActionTrash())); |
|
|
|
connect(mpDeleteAction,SIGNAL(triggered()), this, SLOT(onActionTrash())); |
|
|
|
connect(mpCloseAction, SIGNAL(triggered()), this, SLOT(onActionClose())); |
|
|
|
connect(mpCloseAction, SIGNAL(triggered()), this, SLOT(onActionClose())); |
|
|
@ -78,6 +78,7 @@ UBFeaturesActionBar::UBFeaturesActionBar( UBFeaturesController *controller, QWid |
|
|
|
connect(mSearchBar, SIGNAL(textChanged(QString)), this, SLOT(onSearchTextChanged(QString))); |
|
|
|
connect(mSearchBar, SIGNAL(textChanged(QString)), this, SLOT(onSearchTextChanged(QString))); |
|
|
|
connect(mpNewFolderAction, SIGNAL(triggered()), this, SLOT(onActionNewFolder())); |
|
|
|
connect(mpNewFolderAction, SIGNAL(triggered()), this, SLOT(onActionNewFolder())); |
|
|
|
connect(mpRemoveFavorite, SIGNAL(triggered()), this, SLOT(onActionRemoveFavorite())); |
|
|
|
connect(mpRemoveFavorite, SIGNAL(triggered()), this, SLOT(onActionRemoveFavorite())); |
|
|
|
|
|
|
|
connect(mpDeleteAction,SIGNAL(triggered()), this, SLOT(onActionTrash())); |
|
|
|
|
|
|
|
|
|
|
|
// Build the default toolbar
|
|
|
|
// Build the default toolbar
|
|
|
|
mLayout->addWidget(mpFavoriteBtn); |
|
|
|
mLayout->addWidget(mpFavoriteBtn); |
|
|
@ -149,6 +150,8 @@ void UBFeaturesActionBar::setButtons() |
|
|
|
mpFavoriteBtn->hide(); |
|
|
|
mpFavoriteBtn->hide(); |
|
|
|
mpSocialBtn->hide(); |
|
|
|
mpSocialBtn->hide(); |
|
|
|
mSearchBar->show(); |
|
|
|
mSearchBar->show(); |
|
|
|
|
|
|
|
mpDeleteBtn->show(); |
|
|
|
|
|
|
|
mpDeleteBtn->setEnabled(true); |
|
|
|
//mpSearchBtn->show();
|
|
|
|
//mpSearchBtn->show();
|
|
|
|
//mpDeleteBtn->hide();
|
|
|
|
//mpDeleteBtn->hide();
|
|
|
|
mpCloseBtn->hide(); |
|
|
|
mpCloseBtn->hide(); |
|
|
@ -181,6 +184,11 @@ void UBFeaturesActionBar::onActionRemoveFavorite() |
|
|
|
emit removeElementsFromFavorite(); |
|
|
|
emit removeElementsFromFavorite(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void UBFeaturesActionBar::onActionTrash() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
emit deleteSelectedElements(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
void UBFeaturesActionBar::dragMoveEvent(QDragMoveEvent *event) |
|
|
|
void UBFeaturesActionBar::dragMoveEvent(QDragMoveEvent *event) |
|
|
|
{ |
|
|
|
{ |
|
|
|