mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 06:54:39 -04:00
fixed StyledDelegates and added proxymodel to lists model
This commit is contained in:
@ -20,9 +20,6 @@ YACReaderSideBar::YACReaderSideBar(QWidget *parent) :
|
||||
readingListsView = new YACReaderReadingListsView;
|
||||
selectedLibrary = new YACReaderLibraryListWidget;
|
||||
|
||||
connect(foldersView,SIGNAL(clicked(QModelIndex)),this,SLOT(selectedIndex(QModelIndex)));
|
||||
connect(readingListsView,SIGNAL(clicked(QModelIndex)),this,SLOT(selectedIndex(QModelIndex)));
|
||||
|
||||
librariesTitle = new YACReaderTitledToolBar(tr("LIBRARIES"));
|
||||
foldersTitle = new YACReaderTitledToolBar(tr("FOLDERS"));
|
||||
readingListsTitle = new YACReaderTitledToolBar(tr("READING LISTS"));
|
||||
@ -176,15 +173,6 @@ QSize YACReaderSideBar::sizeHint() const
|
||||
return QSize(275,200);
|
||||
}
|
||||
|
||||
void YACReaderSideBar::selectedIndex(const QModelIndex &mi)
|
||||
{
|
||||
if(sender() == foldersView)
|
||||
readingListsView->clearSelection();
|
||||
else if(sender() == readingListsView)
|
||||
foldersView->clearSelection();
|
||||
}
|
||||
|
||||
|
||||
YACReaderSideBarSeparator::YACReaderSideBarSeparator(QWidget *parent)
|
||||
:QWidget(parent)
|
||||
{
|
||||
|
@ -38,9 +38,6 @@ signals:
|
||||
|
||||
public slots:
|
||||
|
||||
protected slots:
|
||||
void selectedIndex(const QModelIndex & mi);
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *);
|
||||
|
||||
|
Reference in New Issue
Block a user