|
a/src/qtgui/respopup.cpp |
|
b/src/qtgui/respopup.cpp |
|
... |
|
... |
27 |
#include "respopup.h"
|
27 |
#include "respopup.h"
|
28 |
#include "appformime.h"
|
28 |
#include "appformime.h"
|
29 |
|
29 |
|
30 |
namespace ResultPopup {
|
30 |
namespace ResultPopup {
|
31 |
|
31 |
|
32 |
QMenu *create(QWidget *me, int opts, STD_SHARED_PTR<DocSequence> source, Rcl::Doc& doc)
|
32 |
QMenu *create(QWidget *me, int opts, std::shared_ptr<DocSequence> source, Rcl::Doc& doc)
|
33 |
{
|
33 |
{
|
34 |
QMenu *popup = new QMenu(me);
|
34 |
QMenu *popup = new QMenu(me);
|
35 |
|
35 |
|
36 |
LOGDEB("ResultPopup::create: opts " << (opts) << " haspages " << (doc.haspages) << " " << (source ? "Source not null" : "Source is Null") << " " << (source ? (source->snippetsCapable() ?
|
36 |
LOGDEB("ResultPopup::create: opts " << (opts) << " haspages " << (doc.haspages) << " " << (source ? "Source not null" : "Source is Null") << " " << (source ? (source->snippetsCapable() ?
|
37 |
"snippetsCapable" : "not snippetsCapable") : "") << "\n" );
|
37 |
"snippetsCapable" : "not snippetsCapable") : "") << "\n" );
|
|
... |
|
... |
132 |
me, SLOT(menuShowSubDocs()));
|
132 |
me, SLOT(menuShowSubDocs()));
|
133 |
|
133 |
|
134 |
return popup;
|
134 |
return popup;
|
135 |
}
|
135 |
}
|
136 |
|
136 |
|
137 |
Rcl::Doc getParent(STD_SHARED_PTR<DocSequence> source, Rcl::Doc& doc)
|
137 |
Rcl::Doc getParent(std::shared_ptr<DocSequence> source, Rcl::Doc& doc)
|
138 |
{
|
138 |
{
|
139 |
Rcl::Doc pdoc;
|
139 |
Rcl::Doc pdoc;
|
140 |
if (!source || !source->getEnclosing(doc, pdoc)) {
|
140 |
if (!source || !source->getEnclosing(doc, pdoc)) {
|
141 |
// No parent doc: show enclosing folder with app configured for
|
141 |
// No parent doc: show enclosing folder with app configured for
|
142 |
// directories
|
142 |
// directories
|